mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +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.
20 lines
331 B
Rust
20 lines
331 B
Rust
//@ revisions: rpass1 bfail2
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
pub type Foo = impl Sized;
|
|
|
|
#[cfg_attr(rpass1, define_opaque())]
|
|
#[cfg_attr(bfail2, define_opaque(Foo))]
|
|
fn a() {
|
|
//[bfail2]~^ ERROR item does not constrain `Foo::{opaque#0}`
|
|
let _: Foo = b();
|
|
}
|
|
|
|
#[define_opaque(Foo)]
|
|
fn b() -> Foo {
|
|
()
|
|
}
|
|
|
|
fn main() {}
|