]> git.lizzy.rs Git - rust.git/blob - src/test/ui/meta/meta-expected-error-wrong-rev.rs
Rollup merge of #87260 - antoyo:libgccjit-codegen, r=Mark-Simulacrum
[rust.git] / src / test / ui / meta / meta-expected-error-wrong-rev.rs
1 // ignore-compare-mode-nll
2 // ignore-compare-mode-polonius
3
4 // revisions: a
5 // should-fail
6
7 // This is a "meta-test" of the compilertest framework itself.  In
8 // particular, it includes the right error message, but the message
9 // targets the wrong revision, so we expect the execution to fail.
10 // See also `meta-expected-error-correct-rev.rs`.
11
12 #[cfg(a)]
13 fn foo() {
14     let x: u32 = 22_usize; //[b]~ ERROR mismatched types
15 }
16
17 fn main() { }