mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-02-20 07:18:38 +01:00

We use compiletest to run compile-fail tests but compiletest depends on compiler internals so it breaks every now and then and requires nightly. With trybuild we can also run compile-fail tests but it works on stable and it already has reached version 1.0
7 lines
114 B
Rust
7 lines
114 B
Rust
use trybuild::TestCases;
|
|
|
|
#[test]
|
|
fn ui() {
|
|
let t = TestCases::new();
|
|
t.compile_fail("ui/single/*.rs");
|
|
}
|