]> git.lizzy.rs Git - rust.git/blob - src/test/ui/meta/revision-bad.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }