Skip to content

Commit eaafcb7

Browse files
authored
Rollup merge of rust-lang#58912 - pnkfelix:issue-58813-incr-comp-regress-test, r=petrochenkov
Regression test for rust-lang#58813 Fix rust-lang#58813
2 parents c789291 + c076701 commit eaafcb7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Adapated from rust-lang/rust#58813
2+
3+
// revisions: rpass1 cfail2
4+
5+
#[cfg(rpass1)]
6+
pub trait T2 { }
7+
#[cfg(cfail2)]
8+
pub trait T2: T1 { }
9+
//[cfail2]~^ ERROR cycle detected when computing the supertraits of `T2`
10+
//[cfail2]~| ERROR cycle detected when computing the supertraits of `T2`
11+
12+
pub trait T1: T2 { }
13+
14+
fn main() { }

0 commit comments

Comments
 (0)