1 error: unexpected `...`
2 --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:4:13
4 LL | let Foo(...) = Foo(0);
8 | help: for a rest pattern, use `..` instead of `...`
10 error: unexpected `...`
11 --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:5:13
13 LL | let [_, ..., _] = [0, 1];
17 | help: for a rest pattern, use `..` instead of `...`
19 error[E0308]: mismatched types
20 --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:6:33
22 LL | let _recovery_witness: () = 0;
23 | -- ^ expected `()`, found integer
25 | expected due to this
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0308`.