sqlx/tests/ui-tests.rs
Austin Bonander efed9b3d6d sqlx-macros: fix handling of invalid idents
add regression test with Trybuild

fix lint warnings as otherwise Trybuild wanted to include them
2020-01-21 01:52:57 -08:00

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");
}