Rollup merge of #58912 - pnkfelix:issue-58813-incr-comp-regress-test, r=petrochenkov
Regression test for #58813 Fix #58813
This commit is contained in:
commit
eaafcb77b0
1 changed files with 14 additions and 0 deletions
14
src/test/incremental/cyclic-trait-hierarchy.rs
Normal file
14
src/test/incremental/cyclic-trait-hierarchy.rs
Normal 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() { }
|
Loading…
Reference in a new issue