mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 13:02:28 +00:00
17 lines
358 B
Rust
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");
|
|
}
|
|
}
|