]> git.lizzy.rs Git - rust.git/blob - tests/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / cycle-trait / cycle-trait-supertrait-indirect.stderr
1 error[E0391]: cycle detected when computing the super predicates of `B`
2   --> $DIR/cycle-trait-supertrait-indirect.rs:7:1
3    |
4 LL | trait B: C {
5    | ^^^^^^^^^^
6    |
7 note: ...which requires computing the super traits of `B`...
8   --> $DIR/cycle-trait-supertrait-indirect.rs:7:10
9    |
10 LL | trait B: C {
11    |          ^
12 note: ...which requires computing the super predicates of `C`...
13   --> $DIR/cycle-trait-supertrait-indirect.rs:11:1
14    |
15 LL | trait C: B { }
16    | ^^^^^^^^^^
17 note: ...which requires computing the super traits of `C`...
18   --> $DIR/cycle-trait-supertrait-indirect.rs:11:10
19    |
20 LL | trait C: B { }
21    |          ^
22    = note: ...which again requires computing the super predicates of `B`, completing the cycle
23 note: cycle used when computing the super traits of `A`
24   --> $DIR/cycle-trait-supertrait-indirect.rs:4:10
25    |
26 LL | trait A: B {
27    |          ^
28
29 error: aborting due to previous error
30
31 For more information about this error, try `rustc --explain E0391`.