summaryrefslogtreecommitdiffstats
path: root/src/test/ui/let-else/let-else-slicing-error.rs
blob: 25770094bce99e5068c7d62682fc8866c8f9bfb9 (plain)
1
2
3
4
5
6
7
8
9
// issue #92069


fn main() {
    let nums = vec![5, 4, 3, 2, 1];
    let [x, y] = nums else { //~ ERROR expected an array or slice
        return;
    };
}