mirror of
https://github.com/actix/actix-web.git
synced 2024-11-23 10:01:06 +00:00
15 lines
499 B
Rust
15 lines
499 B
Rust
#[rustversion::stable(1.46)] // MSRV
|
|
#[test]
|
|
fn compile_macros() {
|
|
let t = trybuild::TestCases::new();
|
|
|
|
t.pass("tests/trybuild/simple.rs");
|
|
t.compile_fail("tests/trybuild/simple-fail.rs");
|
|
|
|
t.pass("tests/trybuild/route-ok.rs");
|
|
t.compile_fail("tests/trybuild/route-missing-method-fail.rs");
|
|
t.compile_fail("tests/trybuild/route-duplicate-method-fail.rs");
|
|
t.compile_fail("tests/trybuild/route-unexpected-method-fail.rs");
|
|
|
|
t.pass("tests/trybuild/docstring-ok.rs");
|
|
}
|