rust/tests/incremental/cyclic-trait-hierarchy.rs

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

14 lines
247 B
Rust
Raw Normal View History

2020-03-06 11:13:55 +00:00
// Adapted from rust-lang/rust#58813
//@ revisions: rpass1 cfail2
#[cfg(rpass1)]
pub trait T2 {}
#[cfg(cfail2)]
pub trait T2: T1 {}
//[cfail2]~^ ERROR cycle detected when computing the super predicates of `T2`
pub trait T1: T2 {}
fn main() {}