2020-09-13 15:31:08 +00:00
|
|
|
#[test]
|
|
|
|
fn compile_macros() {
|
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
|
|
|
|
t.pass("tests/trybuild/simple.rs");
|
|
|
|
t.compile_fail("tests/trybuild/simple-fail.rs");
|
2020-09-16 21:37:41 +00:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/route-ok.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-missing-method-fail.rs");
|
2020-10-19 02:52:05 +00:00
|
|
|
t.compile_fail("tests/trybuild/route-duplicate-method-fail.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-unexpected-method-fail.rs");
|
|
|
|
}
|
|
|
|
|
2020-12-28 00:44:15 +00:00
|
|
|
// #[rustversion::not(nightly)]
|
|
|
|
// fn skip_on_nightly(t: &trybuild::TestCases) {
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
|
|
|
|
// #[rustversion::nightly]
|
|
|
|
// fn skip_on_nightly(_t: &trybuild::TestCases) {}
|