]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/meta-revision-bad.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / meta-revision-bad.rs
1 // Meta test for compiletest: check that when we give the wrong error
2 // patterns, the test fails.
3
4 // revisions: foo bar
5 // should-fail
6 //[foo] error-pattern:bar
7 //[bar] error-pattern:foo
8
9 #[cfg(foo)]
10 fn die() {
11     panic!("foo");
12 }
13 #[cfg(bar)]
14 fn die() {
15     panic!("bar");
16 }
17
18 fn main() {
19     die();
20 }