]>
Commit | Line | Data |
---|---|---|
94222f64 XL |
1 | error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` |
2 | --> $DIR/inference-cycle.rs:5:16 | |
3 | | | |
4 | LL | type Foo = impl std::fmt::Debug; | |
5 | | ^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | note: ...which requires type-checking `m::bar`... | |
04454e1e | 8 | --> $DIR/inference-cycle.rs:15:9 |
94222f64 | 9 | | |
04454e1e FG |
10 | LL | is_send(foo()); // Today: error |
11 | | ^^^^^^^ | |
12 | = note: ...which requires evaluating trait selection obligation `m::Foo: core::marker::Send`... | |
94222f64 XL |
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/inference-cycle.rs:4:1 | |
16 | | | |
17 | LL | mod m { | |
18 | | ^^^^^ | |
19 | ||
04454e1e | 20 | error: aborting due to previous error |
94222f64 | 21 | |
5e7ed085 | 22 | For more information about this error, try `rustc --explain E0391`. |