Rocket/core/codegen/tests/ui-fail.rs
Sergio Benitez 1858403203 Implement codegen testing on stable.
This commits migrates to 'trybuild' from 'compiletest' for codegen
diagnostic testing.
2020-07-21 15:11:07 -07:00

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