2015-02-17 17:11:01 -05:00
|
|
|
// Test a supertrait cycle where the first trait we find (`A`) is not
|
|
|
|
|
// a direct participant in the cycle.
|
|
|
|
|
|
|
|
|
|
trait A: B {
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-24 09:24:42 -05:00
|
|
|
trait B: C {
|
2018-04-15 23:21:00 +02:00
|
|
|
//~^ ERROR cycle detected
|
2015-02-24 09:24:42 -05:00
|
|
|
}
|
2015-02-17 17:11:01 -05:00
|
|
|
|
|
|
|
|
trait C: B { }
|
|
|
|
|
|
|
|
|
|
fn main() { }
|