]> git.lizzy.rs Git - rust.git/blob - src/test/ui/meta-revision-bad.rs
Rollup merge of #75248 - TimDiekmann:NonNull-as_mut_ptr, r=RalfJung
[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 //[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 }