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