mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
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.
18 lines
409 B
Rust
18 lines
409 B
Rust
// Verify that we do not ICE when we try to overwrite an anon-const's type because of a trait
|
|
// cycle.
|
|
//
|
|
//@ compile-flags: -Zincremental-ignore-spans
|
|
//@ revisions: bpass bfail
|
|
|
|
#![feature(trait_alias)]
|
|
#![crate_type="lib"]
|
|
|
|
#[cfg(bpass)]
|
|
trait Bar<const N: usize> {}
|
|
|
|
#[cfg(bfail)]
|
|
trait Bar<const N: dyn BB> {}
|
|
//[bfail]~^ ERROR cycle detected when computing type of `Bar::N`
|
|
|
|
trait BB = Bar<{ 2 + 1 }>;
|