mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 23:35:20 +00:00

add regression test with Trybuild fix lint warnings as otherwise Trybuild wanted to include them
15 lines
284 B
Rust
15 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");
|
|
}
|