Regression test for #58813

(Update: Fixed test; revision is meant to introduce compile-failure, w/o ICE.)
This commit is contained in:
Felix S. Klock II 2019-03-04 13:55:32 +01:00
parent a9da8fc9c2
commit c0767012d5

View file

@ -0,0 +1,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() { }