]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12511.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / issues / issue-12511.stderr
1 error[E0391]: cycle detected when computing the super predicates of `T1`
2   --> $DIR/issue-12511.rs:1:1
3    |
4 LL | trait T1 : T2 {
5    | ^^^^^^^^^^^^^
6    |
7 note: ...which requires computing the super traits of `T1`...
8   --> $DIR/issue-12511.rs:1:12
9    |
10 LL | trait T1 : T2 {
11    |            ^^
12 note: ...which requires computing the super predicates of `T2`...
13   --> $DIR/issue-12511.rs:5:1
14    |
15 LL | trait T2 : T1 {
16    | ^^^^^^^^^^^^^
17 note: ...which requires computing the super traits of `T2`...
18   --> $DIR/issue-12511.rs:5:12
19    |
20 LL | trait T2 : T1 {
21    |            ^^
22    = note: ...which again requires computing the super predicates of `T1`, completing the cycle
23 note: cycle used when collecting item types in top-level module
24   --> $DIR/issue-12511.rs:1:1
25    |
26 LL | / trait T1 : T2 {
27 LL | |
28 LL | | }
29    | |_^
30
31 error: aborting due to previous error
32
33 For more information about this error, try `rustc --explain E0391`.