]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.rs
Rollup merge of #92581 - Meziu:armv6k-3ds-target, r=nagisa
[rust.git] / src / test / ui / parser / issues / issue-70388-recover-dotdotdot-rest-pat.rs
1 struct Foo(i32);
2
3 fn main() {
4     let Foo(...) = Foo(0); //~ ERROR unexpected `...`
5     let [_, ..., _] = [0, 1]; //~ ERROR unexpected `...`
6     let _recovery_witness: () = 0; //~ ERROR mismatched types
7 }