1 #![cfg(not(miri))] 2 #![warn(rust_2018_idioms, single_use_lifetimes)] 3 4 use std::env; 5 6 #[rustversion::attr(not(nightly), ignore)] 7 #[test] ui()8fn ui() { 9 if env::var_os("CI").is_none() { 10 env::set_var("TRYBUILD", "overwrite"); 11 } 12 13 let t = trybuild::TestCases::new(); 14 t.compile_fail("tests/ui/**/*.rs"); 15 t.pass("tests/run-pass/**/*.rs"); 16 } 17