fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB28 linesraw
1error[E0391]: cycle detected when computing the super predicates of `T1`
2  --> $DIR/infinite-trait-alias-recursion.rs:3:12
3   |
4LL | trait T1 = T2;
5   |            ^^
6   |
7note: ...which requires computing the super predicates of `T2`...
8  --> $DIR/infinite-trait-alias-recursion.rs:6:12
9   |
10LL | trait T2 = T3;
11   |            ^^
12note: ...which requires computing the super predicates of `T3`...
13  --> $DIR/infinite-trait-alias-recursion.rs:8:12
14   |
15LL | trait T3 = T1 + T3;
16   |            ^^
17   = note: ...which again requires computing the super predicates of `T1`, completing the cycle
18   = note: trait aliases cannot be recursive
19note: cycle used when collecting item types in top-level module
20  --> $DIR/infinite-trait-alias-recursion.rs:3:1
21   |
22LL | trait T1 = T2;
23   | ^^^^^^^^^^^^^^
24   = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
25
26error: aborting due to previous error
27
28For more information about this error, try `rustc --explain E0391`.