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