about summary refs log tree commit diff
path: root/tests/ui/meta/expected-error-correct-rev.rs
blob: 33837337c151a980c619146cb0e91105051342a7 (plain)
1
2
3
4
5
6
7
8
9
10
//@ revisions: a

// Counterpart to `expected-error-wrong-rev.rs`

#[cfg(a)]
fn foo() {
    let x: u32 = 22_usize; //[a]~ ERROR mismatched types
}

fn main() { }