1 2 3 4 5 6 7 8
//! Compile-fail tests proving that the typestate pattern prevents illegal //! transitions at compile time. #[test] fn compile_fail_tests() { let t = trybuild::TestCases::new(); t.compile_fail("tests/ui/*.rs"); }