rust/tests/ui/let-else/let-else-slicing-error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
157 B
Rust
Raw Normal View History

2022-02-20 21:45:40 -06:00
// issue #92069
2022-02-20 21:45:40 -06:00
fn main() {
let nums = vec![5, 4, 3, 2, 1];
let [x, y] = nums else { //~ ERROR expected an array or slice
return;
};
}