1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 13:02:28 +00:00
deprecated-gotham-restful/tests/trybuild_ui.rs

17 lines
358 B
Rust

use trybuild::TestCases;
#[test]
#[ignore]
fn trybuild_ui() {
let t = TestCases::new();
// always enabled
t.compile_fail("tests/ui/endpoint/*.rs");
t.compile_fail("tests/ui/from_body/*.rs");
t.compile_fail("tests/ui/resource/*.rs");
// require the openapi feature
if cfg!(feature = "openapi") {
t.compile_fail("tests/ui/openapi_type/*.rs");
}
}