]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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 }