Skip to content

Commit

Permalink
Rollup merge of rust-lang#58912 - pnkfelix:issue-58813-incr-comp-regr…
Browse files Browse the repository at this point in the history
…ess-test, r=petrochenkov

Regression test for rust-lang#58813

Fix rust-lang#58813
  • Loading branch information
pietroalbini committed Mar 8, 2019
2 parents c789291 + c076701 commit eaafcb7
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 eaafcb7

Please sign in to comment.