]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/meta-expected-error-wrong-rev.rs
Auto merge of #68066 - CAD97:stabilize-manuallydrop-take, r=Amanieu,Mark-Simulacrum
[rust.git] / src / test / compile-fail / meta-expected-error-wrong-rev.rs
1 // ignore-compare-mode-nll
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() { }