]> git.lizzy.rs Git - rust.git/blob - src/test/ui/infinite/infinite-trait-alias-recursion.stderr
Rollup merge of #100396 - chenyukang:fix-100394, r=petrochenkov
[rust.git] / src / test / ui / infinite / infinite-trait-alias-recursion.stderr
1 error[E0391]: cycle detected when computing the super predicates of `T1`
2   --> $DIR/infinite-trait-alias-recursion.rs:3:1
3    |
4 LL | trait T1 = T2;
5    | ^^^^^^^^
6    |
7 note: ...which requires computing the super traits of `T1`...
8   --> $DIR/infinite-trait-alias-recursion.rs:3:12
9    |
10 LL | trait T1 = T2;
11    |            ^^
12 note: ...which requires computing the super predicates of `T2`...
13   --> $DIR/infinite-trait-alias-recursion.rs:6:1
14    |
15 LL | trait T2 = T3;
16    | ^^^^^^^^
17 note: ...which requires computing the super traits of `T2`...
18   --> $DIR/infinite-trait-alias-recursion.rs:6:12
19    |
20 LL | trait T2 = T3;
21    |            ^^
22 note: ...which requires computing the super predicates of `T3`...
23   --> $DIR/infinite-trait-alias-recursion.rs:8:1
24    |
25 LL | trait T3 = T1 + T3;
26    | ^^^^^^^^
27 note: ...which requires computing the super traits of `T3`...
28   --> $DIR/infinite-trait-alias-recursion.rs:8:12
29    |
30 LL | trait T3 = T1 + T3;
31    |            ^^
32    = note: ...which again requires computing the super predicates of `T1`, completing the cycle
33    = note: trait aliases cannot be recursive
34 note: cycle used when collecting item types in top-level module
35   --> $DIR/infinite-trait-alias-recursion.rs:3:1
36    |
37 LL | trait T1 = T2;
38    | ^^^^^^^^^^^^^^
39
40 error: aborting due to previous error
41
42 For more information about this error, try `rustc --explain E0391`.