mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
201 B
Rust
14 lines
201 B
Rust
// 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 {
|
|
//~^ ERROR cycle detected
|
|
}
|
|
|
|
trait C: B { }
|
|
|
|
fn main() { }
|