Skip to content

Commit

Permalink
Regression test for rust-lang#58813
Browse files Browse the repository at this point in the history
(Update: Fixed test; revision is meant to introduce compile-failure, w/o ICE.)
  • Loading branch information
pnkfelix committed Mar 6, 2019
1 parent a9da8fc commit c076701
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/incremental/cyclic-trait-hierarchy.rs
Original file line number Diff line number Diff line change
@@ -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.