rust/tests/ui/cycle-trait/cycle-trait-supertrait-indirect.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
201 B
Rust
Raw Normal View History

// Test a supertrait cycle where the first trait we find (`A`) is not
// a direct participant in the cycle.
trait A: B {
}
trait B: C {
2018-04-15 21:21:00 +00:00
//~^ ERROR cycle detected
}
trait C: B { }
fn main() { }