]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/auto-trait-leakage3.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / auto-trait-leakage3.stderr
1 error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
2   --> $DIR/auto-trait-leakage3.rs:7:16
3    |
4 LL |     type Foo = impl std::fmt::Debug;
5    |                ^^^^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires type-checking `m::bar`...
8   --> $DIR/auto-trait-leakage3.rs:15:5
9    |
10 LL |     pub fn bar() {
11    |     ^^^^^^^^^^^^
12    = note: ...which again requires computing type of `m::Foo::{opaque#0}`, completing the cycle
13 note: cycle used when checking item types in module `m`
14   --> $DIR/auto-trait-leakage3.rs:6:1
15    |
16 LL | mod m {
17    | ^^^^^
18
19 error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
20   --> $DIR/auto-trait-leakage3.rs:7:16
21    |
22 LL |     type Foo = impl std::fmt::Debug;
23    |                ^^^^^^^^^^^^^^^^^^^^
24    |
25 note: ...which requires type-checking `m::bar`...
26   --> $DIR/auto-trait-leakage3.rs:15:5
27    |
28 LL |     pub fn bar() {
29    |     ^^^^^^^^^^^^
30    = note: ...which again requires computing type of `m::Foo::{opaque#0}`, completing the cycle
31 note: cycle used when checking item types in module `m`
32   --> $DIR/auto-trait-leakage3.rs:6:1
33    |
34 LL | mod m {
35    | ^^^^^
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0391`.