]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/trait-upcasting/cyclic-trait-resolution.stderr
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / traits / trait-upcasting / cyclic-trait-resolution.stderr
1 error[E0391]: cycle detected when computing the super predicates of `A`
2   --> $DIR/cyclic-trait-resolution.rs:1:1
3    |
4 LL | trait A: B + A {}
5    | ^^^^^^^^^^^^^^
6    |
7 note: ...which requires computing the super traits of `A`...
8   --> $DIR/cyclic-trait-resolution.rs:1:14
9    |
10 LL | trait A: B + A {}
11    |              ^
12    = note: ...which again requires computing the super predicates of `A`, completing the cycle
13 note: cycle used when collecting item types in top-level module
14   --> $DIR/cyclic-trait-resolution.rs:1:1
15    |
16 LL | trait A: B + A {}
17    | ^^^^^^^^^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0391`.