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 16:21:00 -05:00
//~^ ERROR cycle detected
}
trait C: B { }
fn main() { }