summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0527.rs
blob: af055ff269e3cd1ebe8a8cefb9815b44a7815732 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let r = &[1, 2, 3, 4];
    match r {
        &[a, b] => {
            //~^ ERROR E0527
            println!("a={}, b={}", a, b);
        }
    }
}