rust/src/test/ui/meta-expected-error-correct-rev.rs

11 lines
166 B
Rust
Raw Normal View History

// revisions: a
// Counterpart to `meta-expected-error-wrong-rev.rs`
#[cfg(a)]
fn foo() {
let x: u32 = 22_usize; //[a]~ ERROR mismatched types
}
fn main() { }