mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
42711c23d7
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
23 lines
631 B
Rust
23 lines
631 B
Rust
#[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");
|
|
}
|
|
|
|
// #[rustversion::not(nightly)]
|
|
// fn skip_on_nightly(t: &trybuild::TestCases) {
|
|
//
|
|
// }
|
|
|
|
// #[rustversion::nightly]
|
|
// fn skip_on_nightly(_t: &trybuild::TestCases) {}
|