blob: 4102eb32580f025143f6e7bd5627790e18e4fc7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Adapated 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 supertraits of `T2`
//[cfail2]~| ERROR cycle detected when computing the supertraits of `T2`
pub trait T1: T2 { }
fn main() { }
|