]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/auto-trait-leakage3.stderr
Rollup merge of #106732 - durin42:dmitrig-arrayref-ctor, r=nikic
[rust.git] / tests / 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:9
9    |
10 LL |         is_send(foo());
11    |         ^^^^^^^
12    = note: ...which requires evaluating trait selection obligation `m::Foo: core::marker::Send`...
13    = note: ...which again requires computing type of `m::Foo::{opaque#0}`, completing the cycle
14 note: cycle used when checking item types in module `m`
15   --> $DIR/auto-trait-leakage3.rs:6:1
16    |
17 LL | mod m {
18    | ^^^^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0391`.