@@ -2,111 +2,111 @@ error[E0720]: opaque type expands to a recursive type
2
2
--> $DIR/recursive-impl-trait-type.rs:6:22
3
3
|
4
4
LL | fn option(i: i32) -> impl Sized {
5
- | ^^^^^^^^^^ expands to self-referential type
5
+ | ^^^^^^^^^^ expands to a recursive type
6
6
|
7
7
= note: expanded type is `std::option::Option<(impl Sized, i32)>`
8
8
9
9
error[E0720]: opaque type expands to a recursive type
10
10
--> $DIR/recursive-impl-trait-type.rs:14:15
11
11
|
12
12
LL | fn tuple() -> impl Sized {
13
- | ^^^^^^^^^^ expands to self-referential type
13
+ | ^^^^^^^^^^ expands to a recursive type
14
14
|
15
15
= note: expanded type is `(impl Sized,)`
16
16
17
17
error[E0720]: opaque type expands to a recursive type
18
18
--> $DIR/recursive-impl-trait-type.rs:18:15
19
19
|
20
20
LL | fn array() -> impl Sized {
21
- | ^^^^^^^^^^ expands to self-referential type
21
+ | ^^^^^^^^^^ expands to a recursive type
22
22
|
23
23
= note: expanded type is `[impl Sized; 1]`
24
24
25
25
error[E0720]: opaque type expands to a recursive type
26
26
--> $DIR/recursive-impl-trait-type.rs:22:13
27
27
|
28
28
LL | fn ptr() -> impl Sized {
29
- | ^^^^^^^^^^ expands to self-referential type
29
+ | ^^^^^^^^^^ expands to a recursive type
30
30
|
31
31
= note: expanded type is `*const impl Sized`
32
32
33
33
error[E0720]: opaque type expands to a recursive type
34
34
--> $DIR/recursive-impl-trait-type.rs:26:16
35
35
|
36
36
LL | fn fn_ptr() -> impl Sized {
37
- | ^^^^^^^^^^ expands to self-referential type
37
+ | ^^^^^^^^^^ expands to a recursive type
38
38
|
39
39
= note: expanded type is `fn() -> impl Sized`
40
40
41
41
error[E0720]: opaque type expands to a recursive type
42
42
--> $DIR/recursive-impl-trait-type.rs:30:25
43
43
|
44
44
LL | fn closure_capture() -> impl Sized {
45
- | ^^^^^^^^^^ expands to self-referential type
45
+ | ^^^^^^^^^^ expands to a recursive type
46
46
|
47
47
= note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:32:5: 32:19 x:impl Sized]`
48
48
49
49
error[E0720]: opaque type expands to a recursive type
50
50
--> $DIR/recursive-impl-trait-type.rs:35:29
51
51
|
52
52
LL | fn closure_ref_capture() -> impl Sized {
53
- | ^^^^^^^^^^ expands to self-referential type
53
+ | ^^^^^^^^^^ expands to a recursive type
54
54
|
55
55
= note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:37:5: 37:20 x:impl Sized]`
56
56
57
57
error[E0720]: opaque type expands to a recursive type
58
58
--> $DIR/recursive-impl-trait-type.rs:40:21
59
59
|
60
60
LL | fn closure_sig() -> impl Sized {
61
- | ^^^^^^^^^^ expands to self-referential type
61
+ | ^^^^^^^^^^ expands to a recursive type
62
62
|
63
63
= note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:41:5: 41:21]`
64
64
65
65
error[E0720]: opaque type expands to a recursive type
66
66
--> $DIR/recursive-impl-trait-type.rs:44:23
67
67
|
68
68
LL | fn generator_sig() -> impl Sized {
69
- | ^^^^^^^^^^ expands to self-referential type
69
+ | ^^^^^^^^^^ expands to a recursive type
70
70
|
71
71
= note: expanded type is `[closure@$DIR/recursive-impl-trait-type.rs:45:5: 45:23]`
72
72
73
73
error[E0720]: opaque type expands to a recursive type
74
74
--> $DIR/recursive-impl-trait-type.rs:48:27
75
75
|
76
76
LL | fn generator_capture() -> impl Sized {
77
- | ^^^^^^^^^^ expands to self-referential type
77
+ | ^^^^^^^^^^ expands to a recursive type
78
78
|
79
79
= note: expanded type is `[generator@$DIR/recursive-impl-trait-type.rs:50:5: 50:26 x:impl Sized {()}]`
80
80
81
81
error[E0720]: opaque type expands to a recursive type
82
82
--> $DIR/recursive-impl-trait-type.rs:53:26
83
83
|
84
84
LL | fn substs_change<T>() -> impl Sized {
85
- | ^^^^^^^^^^ expands to self-referential type
85
+ | ^^^^^^^^^^ expands to a recursive type
86
86
|
87
87
= note: expanded type is `(impl Sized,)`
88
88
89
89
error[E0720]: opaque type expands to a recursive type
90
90
--> $DIR/recursive-impl-trait-type.rs:57:24
91
91
|
92
92
LL | fn generator_hold() -> impl Sized {
93
- | ^^^^^^^^^^ expands to self-referential type
93
+ | ^^^^^^^^^^ expands to a recursive type
94
94
|
95
95
= note: expanded type is `[generator@$DIR/recursive-impl-trait-type.rs:58:5: 62:6 {impl Sized, ()}]`
96
96
97
97
error[E0720]: opaque type expands to a recursive type
98
98
--> $DIR/recursive-impl-trait-type.rs:69:26
99
99
|
100
100
LL | fn mutual_recursion() -> impl Sync {
101
- | ^^^^^^^^^ expands to self-referential type
101
+ | ^^^^^^^^^ expands to a recursive type
102
102
|
103
103
= note: type resolves to itself
104
104
105
105
error[E0720]: opaque type expands to a recursive type
106
106
--> $DIR/recursive-impl-trait-type.rs:73:28
107
107
|
108
108
LL | fn mutual_recursion_b() -> impl Sized {
109
- | ^^^^^^^^^^ expands to self-referential type
109
+ | ^^^^^^^^^^ expands to a recursive type
110
110
|
111
111
= note: type resolves to itself
112
112
0 commit comments