1 // Only test on nightly, since UI tests are bound to change over time 2 #[rustversion::stable] 3 #[test] async_instrument()4fn async_instrument() { 5 let t = trybuild::TestCases::new(); 6 t.compile_fail("tests/ui/async_instrument.rs"); 7 } 8 9 #[rustversion::stable] 10 #[test] const_instrument()11fn const_instrument() { 12 let t = trybuild::TestCases::new(); 13 t.compile_fail("tests/ui/const_instrument.rs"); 14 } 15