mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-30 14:22:40 +00:00
1858403203
This commits migrates to 'trybuild' from 'compiletest' for codegen diagnostic testing.
11 lines
252 B
Rust
11 lines
252 B
Rust
#[test]
|
|
fn ui() {
|
|
let path = match version_check::is_feature_flaggable() {
|
|
Some(true) => "ui-fail-nightly",
|
|
_ => "ui-fail-stable"
|
|
};
|
|
|
|
let t = trybuild::TestCases::new();
|
|
t.compile_fail(format!("tests/{}/*.rs", path));
|
|
}
|