summaryrefslogtreecommitdiffstats
path: root/third_party/rust/pin-project/tests/compiletest.rs
blob: b06e1e8fadb7aae2fa155e8a88564a4598d46da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg(not(miri))]
#![warn(rust_2018_idioms, single_use_lifetimes)]

use std::env;

#[rustversion::attr(not(nightly), ignore)]
#[test]
fn ui() {
    if env::var_os("CI").is_none() {
        env::set_var("TRYBUILD", "overwrite");
    }

    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/**/*.rs");
    t.pass("tests/run-pass/**/*.rs");
}