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

#[rustversion::attr(not(nightly), ignore)]
#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/cfg/*.rs");
    t.compile_fail("tests/ui/not_unpin/*.rs");
    t.compile_fail("tests/ui/pin_project/*.rs");
    t.compile_fail("tests/ui/pinned_drop/*.rs");
    t.compile_fail("tests/ui/unsafe_unpin/*.rs");
    t.compile_fail("tests/ui/unstable-features/*.rs");
}