aboutsummaryrefslogblamecommitdiffstats
path: root/testing/tests/ui.rs
blob: 39a0b78ad9fcddeee4936951f24393ddb8848f33 (plain) (tree)
1
2
3
4
5
6
7
                        
                           




                                    





                                                    
 
use trybuild::TestCases;
use version_check as rustc;

#[cfg_attr(not(windows), test)]
fn ui() {
    let t = TestCases::new();
    t.compile_fail("tests/ui/*.rs");

    if rustc::is_min_version("1.54").unwrap() {
        t.compile_fail("tests/ui/since_1_54/*.rs");
    } else {
        t.compile_fail("tests/ui/before_1_54/*.rs");
    }
}