2020-05-05 19:31:02 +02:00
|
|
|
use trybuild::TestCases;
|
|
|
|
|
|
|
|
#[test]
|
2020-05-05 19:57:13 +02:00
|
|
|
#[ignore]
|
2020-09-15 15:10:41 +02:00
|
|
|
fn trybuild_ui() {
|
2020-05-05 19:31:02 +02:00
|
|
|
let t = TestCases::new();
|
2020-09-15 15:10:41 +02:00
|
|
|
|
2020-05-05 19:31:02 +02:00
|
|
|
// always enabled
|
2021-01-18 00:05:30 +00:00
|
|
|
t.compile_fail("tests/ui/endpoint/*.rs");
|
|
|
|
t.compile_fail("tests/ui/from_body/*.rs");
|
|
|
|
t.compile_fail("tests/ui/resource/*.rs");
|
2020-09-15 15:10:41 +02:00
|
|
|
|
2020-05-09 15:29:29 +02:00
|
|
|
// require the openapi feature
|
2020-09-15 15:10:41 +02:00
|
|
|
if cfg!(feature = "openapi") {
|
2021-01-18 00:05:30 +00:00
|
|
|
t.compile_fail("tests/ui/openapi_type/*.rs");
|
2020-05-09 15:29:29 +02:00
|
|
|
}
|
2020-05-05 19:57:13 +02:00
|
|
|
}
|