]> git.proxmox.com Git - rustc.git/blob - src/test/ui/meta/revision-bad.rs
New upstream version 1.49.0+dfsg1
[rustc.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 //[foo] error-pattern:bar
8 //[bar] error-pattern:foo
9
10 #[cfg(foo)]
11 fn die() {
12 panic!("foo");
13 }
14 #[cfg(bar)]
15 fn die() {
16 panic!("bar");
17 }
18
19 fn main() {
20 die();
21 }