summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3718.rs
blob: 8ad21ffc708c7c40148d654f2c746be4e8672d0c (plain)
1
2
3
4
5
6
7
fn main() {
    let x: &[i32] = &[2, 2];
    match x {
        [_a, _] => println!("Wrong username or password"),
        _ => println!("Logged in"),
    }
}