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