@@ -2,111 +2,111 @@ error[E0720]: opaque type expands to a recursive type
22 --> $DIR/recursive-impl-trait-type.rs:6:22
33 |
44LL | fn option(i: i32) -> impl Sized {
5- | ^^^^^^^^^^ expands to self-referential type
5+ | ^^^^^^^^^^ expands to a recursive type
66 |
77 = note: expanded type is `std::option::Option<(impl Sized, i32)>`
88
99error[E0720]: opaque type expands to a recursive type
1010 --> $DIR/recursive-impl-trait-type.rs:14:15
1111 |
1212LL | fn tuple() -> impl Sized {
13- | ^^^^^^^^^^ expands to self-referential type
13+ | ^^^^^^^^^^ expands to a recursive type
1414 |
1515 = note: expanded type is `(impl Sized,)`
1616
1717error[E0720]: opaque type expands to a recursive type
1818 --> $DIR/recursive-impl-trait-type.rs:18:15
1919 |
2020LL | fn array() -> impl Sized {
21- | ^^^^^^^^^^ expands to self-referential type
21+ | ^^^^^^^^^^ expands to a recursive type
2222 |
2323 = note: expanded type is `[impl Sized; 1]`
2424
2525error[E0720]: opaque type expands to a recursive type
2626 --> $DIR/recursive-impl-trait-type.rs:22:13
2727 |
2828LL | fn ptr() -> impl Sized {
29- | ^^^^^^^^^^ expands to self-referential type
29+ | ^^^^^^^^^^ expands to a recursive type
3030 |
3131 = note: expanded type is `*const impl Sized`
3232
3333error[E0720]: opaque type expands to a recursive type
3434 --> $DIR/recursive-impl-trait-type.rs:26:16
3535 |
3636LL | fn fn_ptr() -> impl Sized {
37- | ^^^^^^^^^^ expands to self-referential type
37+ | ^^^^^^^^^^ expands to a recursive type
3838 |
3939 = note: expanded type is `fn() -> impl Sized`
4040
4141error[E0720]: opaque type expands to a recursive type
4242 --> $DIR/recursive-impl-trait-type.rs:30:25
4343 |
4444LL | fn closure_capture() -> impl Sized {
45- | ^^^^^^^^^^ expands to self-referential type
45+ | ^^^^^^^^^^ expands to a recursive type
4646 |
4747 = note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:32:5: 32:19 x:impl Sized]`
4848
4949error[E0720]: opaque type expands to a recursive type
5050 --> $DIR/recursive-impl-trait-type.rs:35:29
5151 |
5252LL | fn closure_ref_capture() -> impl Sized {
53- | ^^^^^^^^^^ expands to self-referential type
53+ | ^^^^^^^^^^ expands to a recursive type
5454 |
5555 = note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:37:5: 37:20 x:impl Sized]`
5656
5757error[E0720]: opaque type expands to a recursive type
5858 --> $DIR/recursive-impl-trait-type.rs:40:21
5959 |
6060LL | fn closure_sig() -> impl Sized {
61- | ^^^^^^^^^^ expands to self-referential type
61+ | ^^^^^^^^^^ expands to a recursive type
6262 |
6363 = note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:41:5: 41:21]`
6464
6565error[E0720]: opaque type expands to a recursive type
6666 --> $DIR/recursive-impl-trait-type.rs:44:23
6767 |
6868LL | fn generator_sig() -> impl Sized {
69- | ^^^^^^^^^^ expands to self-referential type
69+ | ^^^^^^^^^^ expands to a recursive type
7070 |
7171 = note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:45:5: 45:23]`
7272
7373error[E0720]: opaque type expands to a recursive type
7474 --> $DIR/recursive-impl-trait-type.rs:48:27
7575 |
7676LL | fn generator_capture() -> impl Sized {
77- | ^^^^^^^^^^ expands to self-referential type
77+ | ^^^^^^^^^^ expands to a recursive type
7878 |
7979 = note: expanded type is `[generator@$DIR/recursive-impl-trait-type.rs:50:5: 50:26 x:impl Sized {()}]`
8080
8181error[E0720]: opaque type expands to a recursive type
8282 --> $DIR/recursive-impl-trait-type.rs:53:26
8383 |
8484LL | fn substs_change<T>() -> impl Sized {
85- | ^^^^^^^^^^ expands to self-referential type
85+ | ^^^^^^^^^^ expands to a recursive type
8686 |
8787 = note: expanded type is `(impl Sized,)`
8888
8989error[E0720]: opaque type expands to a recursive type
9090 --> $DIR/recursive-impl-trait-type.rs:57:24
9191 |
9292LL | fn generator_hold() -> impl Sized {
93- | ^^^^^^^^^^ expands to self-referential type
93+ | ^^^^^^^^^^ expands to a recursive type
9494 |
9595 = note: expanded type is `[generator@$DIR/recursive-impl-trait-type.rs:58:5: 62:6 {impl Sized, ()}]`
9696
9797error[E0720]: opaque type expands to a recursive type
9898 --> $DIR/recursive-impl-trait-type.rs:69:26
9999 |
100100LL | fn mutual_recursion() -> impl Sync {
101- | ^^^^^^^^^ expands to self-referential type
101+ | ^^^^^^^^^ expands to a recursive type
102102 |
103103 = note: type resolves to itself
104104
105105error[E0720]: opaque type expands to a recursive type
106106 --> $DIR/recursive-impl-trait-type.rs:73:28
107107 |
108108LL | fn mutual_recursion_b() -> impl Sized {
109- | ^^^^^^^^^^ expands to self-referential type
109+ | ^^^^^^^^^^ expands to a recursive type
110110 |
111111 = note: type resolves to itself
112112
0 commit comments