mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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
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 New Issue
Block a user