1 #[cfg(feature = "macro-diagnostics")] 2 #[test] ui()3 fn ui() { 4 let t = trybuild::TestCases::new(); 5 6 t.pass("tests/ui/compile_pass/*.rs"); 7 8 if rustversion::cfg!(nightly) { 9 t.compile_fail("tests/ui/compile_fail/*.rs"); 10 } 11 } 12