Rollup merge of #58912 - pnkfelix:issue-58813-incr-comp-regress-test, r=petrochenkov

Regression test for #58813

Fix #58813
This commit is contained in:
Pietro Albini 2019-03-08 09:41:55 +01:00 committed by GitHub
commit eaafcb77b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() { }