1
- error[E0720]: cannot resolve opaque type to a concrete type
1
+ error[E0720]: cannot resolve opaque type
2
2
--> $DIR/recursive-impl-trait-type-indirect.rs:7:22
3
3
|
4
4
LL | fn option(i: i32) -> impl Sized {
@@ -9,7 +9,7 @@ LL | if i < 0 { None } else { Some((option(i - 1), i)) }
9
9
| |
10
10
| returning here with type `std::option::Option<(impl Sized, i32)>`
11
11
12
- error[E0720]: cannot resolve opaque type to a concrete type
12
+ error[E0720]: cannot resolve opaque type
13
13
--> $DIR/recursive-impl-trait-type-indirect.rs:12:15
14
14
|
15
15
LL | fn tuple() -> impl Sized {
18
18
LL | (tuple(),)
19
19
| ---------- returning here with type `(impl Sized,)`
20
20
21
- error[E0720]: cannot resolve opaque type to a concrete type
21
+ error[E0720]: cannot resolve opaque type
22
22
--> $DIR/recursive-impl-trait-type-indirect.rs:17:15
23
23
|
24
24
LL | fn array() -> impl Sized {
27
27
LL | [array()]
28
28
| --------- returning here with type `[impl Sized; 1]`
29
29
30
- error[E0720]: cannot resolve opaque type to a concrete type
30
+ error[E0720]: cannot resolve opaque type
31
31
--> $DIR/recursive-impl-trait-type-indirect.rs:22:13
32
32
|
33
33
LL | fn ptr() -> impl Sized {
36
36
LL | &ptr() as *const _
37
37
| ------------------ returning here with type `*const impl Sized`
38
38
39
- error[E0720]: cannot resolve opaque type to a concrete type
39
+ error[E0720]: cannot resolve opaque type
40
40
--> $DIR/recursive-impl-trait-type-indirect.rs:27:16
41
41
|
42
42
LL | fn fn_ptr() -> impl Sized {
45
45
LL | fn_ptr as fn() -> _
46
46
| ------------------- returning here with type `fn() -> impl Sized`
47
47
48
- error[E0720]: cannot resolve opaque type to a concrete type
48
+ error[E0720]: cannot resolve opaque type
49
49
--> $DIR/recursive-impl-trait-type-indirect.rs:32:25
50
50
|
51
51
LL | fn closure_capture() -> impl Sized {
@@ -56,7 +56,7 @@ LL | | x;
56
56
LL | | }
57
57
| |_____- returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:35:5: 37:6 x:impl Sized]`
58
58
59
- error[E0720]: cannot resolve opaque type to a concrete type
59
+ error[E0720]: cannot resolve opaque type
60
60
--> $DIR/recursive-impl-trait-type-indirect.rs:40:29
61
61
|
62
62
LL | fn closure_ref_capture() -> impl Sized {
@@ -67,7 +67,7 @@ LL | | &x;
67
67
LL | | }
68
68
| |_____- returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:43:5: 45:6 x:impl Sized]`
69
69
70
- error[E0720]: cannot resolve opaque type to a concrete type
70
+ error[E0720]: cannot resolve opaque type
71
71
--> $DIR/recursive-impl-trait-type-indirect.rs:48:21
72
72
|
73
73
LL | fn closure_sig() -> impl Sized {
76
76
LL | || closure_sig()
77
77
| ---------------- returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:50:5: 50:21]`
78
78
79
- error[E0720]: cannot resolve opaque type to a concrete type
79
+ error[E0720]: cannot resolve opaque type
80
80
--> $DIR/recursive-impl-trait-type-indirect.rs:53:23
81
81
|
82
82
LL | fn generator_sig() -> impl Sized {
85
85
LL | || generator_sig()
86
86
| ------------------ returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:55:5: 55:23]`
87
87
88
- error[E0720]: cannot resolve opaque type to a concrete type
88
+ error[E0720]: cannot resolve opaque type
89
89
--> $DIR/recursive-impl-trait-type-indirect.rs:58:27
90
90
|
91
91
LL | fn generator_capture() -> impl Sized {
@@ -97,7 +97,7 @@ LL | | x;
97
97
LL | | }
98
98
| |_____- returning here with type `[generator@$DIR/recursive-impl-trait-type-indirect.rs:61:5: 64:6 x:impl Sized {()}]`
99
99
100
- error[E0720]: cannot resolve opaque type to a concrete type
100
+ error[E0720]: cannot resolve opaque type
101
101
--> $DIR/recursive-impl-trait-type-indirect.rs:67:35
102
102
|
103
103
LL | fn substs_change<T: 'static>() -> impl Sized {
106
106
LL | (substs_change::<&T>(),)
107
107
| ------------------------ returning here with type `(impl Sized,)`
108
108
109
- error[E0720]: cannot resolve opaque type to a concrete type
109
+ error[E0720]: cannot resolve opaque type
110
110
--> $DIR/recursive-impl-trait-type-indirect.rs:72:24
111
111
|
112
112
LL | fn generator_hold() -> impl Sized {
@@ -119,7 +119,7 @@ LL | | x;
119
119
LL | | }
120
120
| |_____- returning here with type `[generator@$DIR/recursive-impl-trait-type-indirect.rs:74:5: 78:6 {impl Sized, ()}]`
121
121
122
- error[E0720]: cannot resolve opaque type to a concrete type
122
+ error[E0720]: cannot resolve opaque type
123
123
--> $DIR/recursive-impl-trait-type-indirect.rs:86:26
124
124
|
125
125
LL | fn mutual_recursion() -> impl Sync {
@@ -131,7 +131,7 @@ LL | mutual_recursion_b()
131
131
LL | fn mutual_recursion_b() -> impl Sized {
132
132
| ---------- returning this opaque type `impl Sized`
133
133
134
- error[E0720]: cannot resolve opaque type to a concrete type
134
+ error[E0720]: cannot resolve opaque type
135
135
--> $DIR/recursive-impl-trait-type-indirect.rs:91:28
136
136
|
137
137
LL | fn mutual_recursion() -> impl Sync {
0 commit comments