We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9da8fc commit c076701Copy full SHA for c076701
src/test/incremental/cyclic-trait-hierarchy.rs
@@ -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