1- error[E0720]: cannot resolve opaque type to a concrete type
1+ error[E0720]: cannot resolve opaque type
22 --> $DIR/recursive-impl-trait-type-indirect.rs:7:22
33 |
44LL | fn option(i: i32) -> impl Sized {
@@ -9,7 +9,7 @@ LL | if i < 0 { None } else { Some((option(i - 1), i)) }
99 | |
1010 | returning here with type `std::option::Option<(impl Sized, i32)>`
1111
12- error[E0720]: cannot resolve opaque type to a concrete type
12+ error[E0720]: cannot resolve opaque type
1313 --> $DIR/recursive-impl-trait-type-indirect.rs:12:15
1414 |
1515LL | fn tuple() -> impl Sized {
1818LL | (tuple(),)
1919 | ---------- returning here with type `(impl Sized,)`
2020
21- error[E0720]: cannot resolve opaque type to a concrete type
21+ error[E0720]: cannot resolve opaque type
2222 --> $DIR/recursive-impl-trait-type-indirect.rs:17:15
2323 |
2424LL | fn array() -> impl Sized {
2727LL | [array()]
2828 | --------- returning here with type `[impl Sized; 1]`
2929
30- error[E0720]: cannot resolve opaque type to a concrete type
30+ error[E0720]: cannot resolve opaque type
3131 --> $DIR/recursive-impl-trait-type-indirect.rs:22:13
3232 |
3333LL | fn ptr() -> impl Sized {
3636LL | &ptr() as *const _
3737 | ------------------ returning here with type `*const impl Sized`
3838
39- error[E0720]: cannot resolve opaque type to a concrete type
39+ error[E0720]: cannot resolve opaque type
4040 --> $DIR/recursive-impl-trait-type-indirect.rs:27:16
4141 |
4242LL | fn fn_ptr() -> impl Sized {
4545LL | fn_ptr as fn() -> _
4646 | ------------------- returning here with type `fn() -> impl Sized`
4747
48- error[E0720]: cannot resolve opaque type to a concrete type
48+ error[E0720]: cannot resolve opaque type
4949 --> $DIR/recursive-impl-trait-type-indirect.rs:32:25
5050 |
5151LL | fn closure_capture() -> impl Sized {
@@ -56,7 +56,7 @@ LL | | x;
5656LL | | }
5757 | |_____- returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:35:5: 37:6 x:impl Sized]`
5858
59- error[E0720]: cannot resolve opaque type to a concrete type
59+ error[E0720]: cannot resolve opaque type
6060 --> $DIR/recursive-impl-trait-type-indirect.rs:40:29
6161 |
6262LL | fn closure_ref_capture() -> impl Sized {
@@ -67,7 +67,7 @@ LL | | &x;
6767LL | | }
6868 | |_____- returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:43:5: 45:6 x:impl Sized]`
6969
70- error[E0720]: cannot resolve opaque type to a concrete type
70+ error[E0720]: cannot resolve opaque type
7171 --> $DIR/recursive-impl-trait-type-indirect.rs:48:21
7272 |
7373LL | fn closure_sig() -> impl Sized {
7676LL | || closure_sig()
7777 | ---------------- returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:50:5: 50:21]`
7878
79- error[E0720]: cannot resolve opaque type to a concrete type
79+ error[E0720]: cannot resolve opaque type
8080 --> $DIR/recursive-impl-trait-type-indirect.rs:53:23
8181 |
8282LL | fn generator_sig() -> impl Sized {
8585LL | || generator_sig()
8686 | ------------------ returning here with type `[closure@$DIR/recursive-impl-trait-type-indirect.rs:55:5: 55:23]`
8787
88- error[E0720]: cannot resolve opaque type to a concrete type
88+ error[E0720]: cannot resolve opaque type
8989 --> $DIR/recursive-impl-trait-type-indirect.rs:58:27
9090 |
9191LL | fn generator_capture() -> impl Sized {
@@ -97,7 +97,7 @@ LL | | x;
9797LL | | }
9898 | |_____- returning here with type `[generator@$DIR/recursive-impl-trait-type-indirect.rs:61:5: 64:6 x:impl Sized {()}]`
9999
100- error[E0720]: cannot resolve opaque type to a concrete type
100+ error[E0720]: cannot resolve opaque type
101101 --> $DIR/recursive-impl-trait-type-indirect.rs:67:35
102102 |
103103LL | fn substs_change<T: 'static>() -> impl Sized {
106106LL | (substs_change::<&T>(),)
107107 | ------------------------ returning here with type `(impl Sized,)`
108108
109- error[E0720]: cannot resolve opaque type to a concrete type
109+ error[E0720]: cannot resolve opaque type
110110 --> $DIR/recursive-impl-trait-type-indirect.rs:72:24
111111 |
112112LL | fn generator_hold() -> impl Sized {
@@ -119,7 +119,7 @@ LL | | x;
119119LL | | }
120120 | |_____- returning here with type `[generator@$DIR/recursive-impl-trait-type-indirect.rs:74:5: 78:6 {impl Sized, ()}]`
121121
122- error[E0720]: cannot resolve opaque type to a concrete type
122+ error[E0720]: cannot resolve opaque type
123123 --> $DIR/recursive-impl-trait-type-indirect.rs:86:26
124124 |
125125LL | fn mutual_recursion() -> impl Sync {
@@ -131,7 +131,7 @@ LL | mutual_recursion_b()
131131LL | fn mutual_recursion_b() -> impl Sized {
132132 | ---------- returning this opaque type `impl Sized`
133133
134- error[E0720]: cannot resolve opaque type to a concrete type
134+ error[E0720]: cannot resolve opaque type
135135 --> $DIR/recursive-impl-trait-type-indirect.rs:91:28
136136 |
137137LL | fn mutual_recursion() -> impl Sync {
0 commit comments