Skip to content
Permalink
Browse files

Regression test for #58813

(Update: Fixed test; revision is meant to introduce compile-failure, w/o ICE.)
  • Loading branch information...
pnkfelix committed Mar 4, 2019
1 parent a9da8fc commit c0767012d5658a1b88fa4bbdce56ac2ea2dd78e0
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/test/incremental/cyclic-trait-hierarchy.rs
@@ -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() { }

0 comments on commit c076701

Please sign in to comment.
You can’t perform that action at this time.