#[cfg(not(miri))] #[test] fn ui() { let t = trybuild::TestCases::new(); t.compile_fail("tests/ui/abi.rs"); t.compile_fail("tests/ui/bad_return.rs"); t.compile_fail("tests/ui/generics.rs"); t.compile_fail("tests/ui/impl_trait_nested.rs"); t.compile_fail("tests/ui/impl_trait.rs"); t.compile_fail("tests/ui/impl_trait_static.rs"); t.compile_fail("tests/ui/nonstatic_ref_anon_nested.rs"); t.compile_fail("tests/ui/nonstatic_ref_anon.rs"); t.compile_fail("tests/ui/nonstatic_ref_elided.rs"); t.compile_fail("tests/ui/nonstatic_ref_generic.rs"); t.compile_fail("tests/ui/nonstatic_struct_anon.rs"); #[cfg(not(feature = "nightly"))] // we can't catch this case with the macro, so the output changes on nightly. t.compile_fail("tests/ui/nonstatic_struct_elided.rs"); t.compile_fail("tests/ui/nonstatic_struct_generic.rs"); t.compile_fail("tests/ui/not_async.rs"); t.compile_fail("tests/ui/spawn_nonsend.rs"); t.compile_fail("tests/ui/return_impl_future_nonsend.rs"); if rustversion::cfg!(stable) { // output is slightly different on nightly t.compile_fail("tests/ui/bad_return_impl_future.rs"); t.compile_fail("tests/ui/return_impl_send.rs"); } if cfg!(feature = "nightly") { t.compile_fail("tests/ui/bad_return_impl_future_nightly.rs"); t.compile_fail("tests/ui/return_impl_send_nightly.rs"); } t.compile_fail("tests/ui/self_ref.rs"); t.compile_fail("tests/ui/self.rs"); t.compile_fail("tests/ui/type_error.rs"); t.compile_fail("tests/ui/where_clause.rs"); t.compile_fail("tests/ui/unsafe_op_in_unsafe_task.rs"); t.pass("tests/ui/task_safety_attribute.rs"); }