]> git.lizzy.rs Git - rust.git/blob - src/test/ui/meta/revision-bad.rs
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[rust.git] / src / test / ui / meta / revision-bad.rs
1 // Meta test for compiletest: check that when we give the wrong error
2 // patterns, the test fails.
3
4 // run-fail
5 // revisions: foo bar
6 // should-fail
7 // needs-run-enabled
8 //[foo] error-pattern:bar
9 //[bar] error-pattern:foo
10
11 #[cfg(foo)]
12 fn die() {
13     panic!("foo");
14 }
15 #[cfg(bar)]
16 fn die() {
17     panic!("bar");
18 }
19
20 fn main() {
21     die();
22 }