summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsized/issue-115203.rs
blob: 5fe7bd64288da7dbccc932ff78d5d255b2f7b9fe (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: --emit link

fn main() {
    let a: [i32; 0] = [];
    match [a[..]] {
        //~^ ERROR cannot move a value of type `[i32]
        //~| ERROR cannot move out of type `[i32]`, a non-copy slice
        [[]] => (),
        _ => (),
    }
}