mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-15 00:27:41 +00:00
efed9b3d6d
add regression test with Trybuild fix lint warnings as otherwise Trybuild wanted to include them
14 lines
284 B
Rust
14 lines
284 B
Rust
#[test]
|
|
fn ui_tests() {
|
|
let t = trybuild::TestCases::new();
|
|
|
|
if cfg!(feature = "postgres") {
|
|
t.compile_fail("tests/ui/postgres/*.rs");
|
|
}
|
|
|
|
if cfg!(feature = "mysql") {
|
|
t.compile_fail("tests/ui/mysql/*.rs");
|
|
}
|
|
|
|
t.compile_fail("tests/ui/*.rs");
|
|
}
|