2021-05-24 17:09:38 +02:00
|
|
|
#[rustversion::stable(1.46)] // MSRV
|
2020-09-13 17:31:08 +02: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 23:37:41 +02:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/route-ok.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-missing-method-fail.rs");
|
2020-10-19 04:52:05 +02:00
|
|
|
t.compile_fail("tests/trybuild/route-duplicate-method-fail.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-unexpected-method-fail.rs");
|
2021-02-24 13:26:56 +01:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/docstring-ok.rs");
|
2020-10-19 04:52:05 +02:00
|
|
|
}
|