File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 33// revisions: rpass1 cfail2
44
55#[ cfg( rpass1) ]
6- pub trait T2 { }
6+ pub trait T2 { }
77#[ cfg( cfail2) ]
8- pub trait T2 : T1 { }
9- //[cfail2]~^ ERROR cycle detected when computing the supertraits of `T2`
8+ pub trait T2 : T1 { }
9+ //[cfail2]~^ ERROR cycle detected when computing the super predicates of `T2`
1010
11- pub trait T1 : T2 { }
11+ pub trait T1 : T2 { }
1212
13- fn main ( ) { }
13+ fn main ( ) { }
Original file line number Diff line number Diff line change 1- error[E0391]: cycle detected when computing the supertraits of `Chromosome`
1+ error[E0391]: cycle detected when computing the super predicates of `Chromosome`
22 --> $DIR/cycle-trait-supertrait-direct.rs:3:1
33 |
44LL | trait Chromosome: Chromosome {
@@ -9,7 +9,7 @@ note: ...which requires computing the supertraits of `Chromosome`...
99 |
1010LL | trait Chromosome: Chromosome {
1111 | ^^^^^^^^^^
12- = note: ...which again requires computing the supertraits of `Chromosome`, completing the cycle
12+ = note: ...which again requires computing the super predicates of `Chromosome`, completing the cycle
1313note: cycle used when collecting item types in top-level module
1414 --> $DIR/cycle-trait-supertrait-direct.rs:3:1
1515 |
Original file line number Diff line number Diff line change 1- error[E0391]: cycle detected when computing the supertraits of `B`
1+ error[E0391]: cycle detected when computing the super predicates of `B`
22 --> $DIR/cycle-trait-supertrait-indirect.rs:7:1
33 |
44LL | trait B: C {
@@ -9,7 +9,7 @@ note: ...which requires computing the supertraits of `B`...
99 |
1010LL | trait B: C {
1111 | ^
12- note: ...which requires computing the supertraits of `C`...
12+ note: ...which requires computing the super predicates of `C`...
1313 --> $DIR/cycle-trait-supertrait-indirect.rs:11:1
1414 |
1515LL | trait C: B { }
@@ -19,7 +19,7 @@ note: ...which requires computing the supertraits of `C`...
1919 |
2020LL | trait C: B { }
2121 | ^
22- = note: ...which again requires computing the supertraits of `B`, completing the cycle
22+ = note: ...which again requires computing the super predicates of `B`, completing the cycle
2323note: cycle used when computing the supertraits of `A`
2424 --> $DIR/cycle-trait-supertrait-indirect.rs:4:10
2525 |
Original file line number Diff line number Diff line change 1- error[E0391]: cycle detected when computing the supertraits of `T1`
1+ error[E0391]: cycle detected when computing the super predicates of `T1`
22 --> $DIR/issue-12511.rs:1:1
33 |
44LL | trait T1 : T2 {
@@ -9,7 +9,7 @@ note: ...which requires computing the supertraits of `T1`...
99 |
1010LL | trait T1 : T2 {
1111 | ^^
12- note: ...which requires computing the supertraits of `T2`...
12+ note: ...which requires computing the super predicates of `T2`...
1313 --> $DIR/issue-12511.rs:5:1
1414 |
1515LL | trait T2 : T1 {
@@ -19,7 +19,7 @@ note: ...which requires computing the supertraits of `T2`...
1919 |
2020LL | trait T2 : T1 {
2121 | ^^
22- = note: ...which again requires computing the supertraits of `T1`, completing the cycle
22+ = note: ...which again requires computing the super predicates of `T1`, completing the cycle
2323note: cycle used when collecting item types in top-level module
2424 --> $DIR/issue-12511.rs:1:1
2525 |
You can’t perform that action at this time.
0 commit comments