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