aboutsummaryrefslogtreecommitdiff
path: root/tests/compiletest.rs
blob: 8970215e7d22fd0ab7c2df5f29446964dc99ac83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![cfg(not(miri))]
#![warn(rust_2018_idioms, single_use_lifetimes)]

use std::env;

#[rustversion::attr(before(2021-05-15), ignore)] // Note: This date is commit-date and the day before the toolchain date.
#[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");
}