2020-07-20 22:02:10 +00:00
|
|
|
#[test]
|
|
|
|
fn ui() {
|
|
|
|
let path = match version_check::is_feature_flaggable() {
|
|
|
|
Some(true) => "ui-fail-nightly",
|
|
|
|
_ => "ui-fail-stable"
|
|
|
|
};
|
|
|
|
|
2021-06-29 10:36:48 +00:00
|
|
|
let glob = std::env::args().last()
|
|
|
|
.map(|arg| format!("*{}*.rs", arg))
|
|
|
|
.unwrap_or_else(|| "*.rs".into());
|
|
|
|
|
2020-07-20 22:02:10 +00:00
|
|
|
let t = trybuild::TestCases::new();
|
2021-06-29 10:36:48 +00:00
|
|
|
t.compile_fail(format!("tests/{}/{}", path, glob));
|
2020-07-20 22:02:10 +00:00
|
|
|
}
|