mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
72abf370bb
Long ago, UI tests were divided into "compile" and "run" tests. Later, the compile tests were further subdivided into "check" and "build" tests, to speed up tests that don't need a full build. The same split was never applied to incremental test revisions, so the only way to perform a check build in incremental tests is (confusingly) to use a `cfail` revision and then specify `//@ check-fail` or `//@ check-pass`. This PR makes room for dedicated check-fail and check-pass revisions by renaming the existing `cfail` and `cpass` revisions to `bfail` and `bpass`, since they currently perform a full build.
14 lines
247 B
Rust
14 lines
247 B
Rust
// Adapted from rust-lang/rust#58813
|
|
|
|
//@ revisions: rpass1 bfail2
|
|
|
|
#[cfg(rpass1)]
|
|
pub trait T2 {}
|
|
#[cfg(bfail2)]
|
|
pub trait T2: T1 {}
|
|
//[bfail2]~^ ERROR cycle detected when computing the super predicates of `T2`
|
|
|
|
pub trait T1: T2 {}
|
|
|
|
fn main() {}
|