1
- error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:26 :5: 26 :24>::{synthetic#0}`
2
- --> $DIR/unsupported.rs:27 :25
1
+ error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:25 :5: 25 :24>::{synthetic#0}`
2
+ --> $DIR/unsupported.rs:26 :25
3
3
|
4
4
LL | reuse to_reuse::opaque_ret;
5
5
| ^^^^^^^^^^
6
6
|
7
7
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
8
- --> $DIR/unsupported.rs:27 :25
8
+ --> $DIR/unsupported.rs:26 :25
9
9
|
10
10
LL | reuse to_reuse::opaque_ret;
11
11
| ^^^^^^^^^^
12
- = note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:26 :5: 26 :24>::{synthetic#0}`, completing the cycle
13
- note: cycle used when checking that `opaque::<impl at $DIR/unsupported.rs:26 :5: 26 :24>` is well-formed
14
- --> $DIR/unsupported.rs:26 :5
12
+ = note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:25 :5: 25 :24>::{synthetic#0}`, completing the cycle
13
+ note: cycle used when checking that `opaque::<impl at $DIR/unsupported.rs:25 :5: 25 :24>` is well-formed
14
+ --> $DIR/unsupported.rs:25 :5
15
15
|
16
16
LL | impl ToReuse for u8 {
17
17
| ^^^^^^^^^^^^^^^^^^^
18
18
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
19
19
20
20
warning: this function depends on never type fallback being `()`
21
- --> $DIR/unsupported.rs:14 :9
21
+ --> $DIR/unsupported.rs:13 :9
22
22
|
23
23
LL | pub fn opaque_ret() -> impl Trait { unimplemented!() }
24
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -27,14 +27,14 @@ LL | pub fn opaque_ret() -> impl Trait { unimplemented!() }
27
27
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
28
28
= help: specify the types explicitly
29
29
note: in edition 2024, the requirement `!: opaque::Trait` will fail
30
- --> $DIR/unsupported.rs:14 :32
30
+ --> $DIR/unsupported.rs:13 :32
31
31
|
32
32
LL | pub fn opaque_ret() -> impl Trait { unimplemented!() }
33
33
| ^^^^^^^^^^
34
34
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
35
35
36
36
warning: this function depends on never type fallback being `()`
37
- --> $DIR/unsupported.rs:20 :9
37
+ --> $DIR/unsupported.rs:19 :9
38
38
|
39
39
LL | fn opaque_ret() -> impl Trait { unimplemented!() }
40
40
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -43,32 +43,32 @@ LL | fn opaque_ret() -> impl Trait { unimplemented!() }
43
43
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
44
44
= help: specify the types explicitly
45
45
note: in edition 2024, the requirement `!: opaque::Trait` will fail
46
- --> $DIR/unsupported.rs:20 :28
46
+ --> $DIR/unsupported.rs:19 :28
47
47
|
48
48
LL | fn opaque_ret() -> impl Trait { unimplemented!() }
49
49
| ^^^^^^^^^^
50
50
51
- error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:29 :5: 29 :25>::{synthetic#0}`
52
- --> $DIR/unsupported.rs:30 :24
51
+ error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:28 :5: 28 :25>::{synthetic#0}`
52
+ --> $DIR/unsupported.rs:29 :24
53
53
|
54
54
LL | reuse ToReuse::opaque_ret;
55
55
| ^^^^^^^^^^
56
56
|
57
57
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
58
- --> $DIR/unsupported.rs:30 :24
58
+ --> $DIR/unsupported.rs:29 :24
59
59
|
60
60
LL | reuse ToReuse::opaque_ret;
61
61
| ^^^^^^^^^^
62
- = note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:29 :5: 29 :25>::{synthetic#0}`, completing the cycle
63
- note: cycle used when checking that `opaque::<impl at $DIR/unsupported.rs:29 :5: 29 :25>` is well-formed
64
- --> $DIR/unsupported.rs:29 :5
62
+ = note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:28 :5: 28 :25>::{synthetic#0}`, completing the cycle
63
+ note: cycle used when checking that `opaque::<impl at $DIR/unsupported.rs:28 :5: 28 :25>` is well-formed
64
+ --> $DIR/unsupported.rs:28 :5
65
65
|
66
66
LL | impl ToReuse for u16 {
67
67
| ^^^^^^^^^^^^^^^^^^^^
68
68
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
69
69
70
70
error: recursive delegation is not supported yet
71
- --> $DIR/unsupported.rs:43 :22
71
+ --> $DIR/unsupported.rs:42 :22
72
72
|
73
73
LL | pub reuse to_reuse2::foo;
74
74
| --- callee defined here
@@ -77,7 +77,7 @@ LL | reuse to_reuse1::foo;
77
77
| ^^^
78
78
79
79
error[E0283]: type annotations needed
80
- --> $DIR/unsupported.rs:53 :18
80
+ --> $DIR/unsupported.rs:52 :18
81
81
|
82
82
LL | reuse Trait::foo;
83
83
| ^^^ cannot infer type
0 commit comments