1
0
Fork 0
firefox/third_party/rust/darling/tests/compiletests.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
395 B
Rust

#![cfg(compiletests)]
#[rustversion::stable(1.77)]
#[test]
fn compile_test() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/compile-fail/*.rs");
}
#[rustversion::not(stable(1.77))]
#[test]
fn wrong_rustc_version() {
panic!(
"This is not the expected version of rustc. Error messages vary across compiler versions so tests may produce spurious errors"
);
}