fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
658 B21 linesraw
1error[E0391]: cycle detected when computing the supertraits of `B`
2  --> $DIR/cycle-trait-supertrait-indirect.rs:7:10
3   |
4LL | trait B: C {
5   |          ^
6   |
7note: ...which requires computing the supertraits of `C`...
8  --> $DIR/cycle-trait-supertrait-indirect.rs:11:10
9   |
10LL | trait C: B { }
11   |          ^
12   = note: ...which again requires computing the supertraits of `B`, completing the cycle
13note: cycle used when computing the supertraits of `A`
14  --> $DIR/cycle-trait-supertrait-indirect.rs:4:10
15   |
16LL | trait A: B {
17   |          ^
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0391`.