]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/inference-cycle.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / inference-cycle.stderr
CommitLineData
94222f64
XL
1error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
2 --> $DIR/inference-cycle.rs:5:16
3 |
4LL | type Foo = impl std::fmt::Debug;
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
7note: ...which requires type-checking `m::bar`...
04454e1e 8 --> $DIR/inference-cycle.rs:15:9
94222f64 9 |
04454e1e
FG
10LL | 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
14note: cycle used when checking item types in module `m`
15 --> $DIR/inference-cycle.rs:4:1
16 |
17LL | mod m {
18 | ^^^^^
19
04454e1e 20error: aborting due to previous error
94222f64 21
5e7ed085 22For more information about this error, try `rustc --explain E0391`.