Skip to content

Commit c076701

Browse files
committed
Regression test for #58813
(Update: Fixed test; revision is meant to introduce compile-failure, w/o ICE.)
1 parent a9da8fc commit c076701

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)