]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.stderr
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[rust.git] / src / test / ui / parser / issues / issue-70388-recover-dotdotdot-rest-pat.stderr
1 error: unexpected `...`
2   --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:4:13
3    |
4 LL |     let Foo(...) = Foo(0);
5    |             ^^^
6    |             |
7    |             not a valid pattern
8    |             help: for a rest pattern, use `..` instead of `...`
9
10 error: unexpected `...`
11   --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:5:13
12    |
13 LL |     let [_, ..., _] = [0, 1];
14    |             ^^^
15    |             |
16    |             not a valid pattern
17    |             help: for a rest pattern, use `..` instead of `...`
18
19 error[E0308]: mismatched types
20   --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:6:33
21    |
22 LL |     let _recovery_witness: () = 0;
23    |                            --   ^ expected `()`, found integer
24    |                            |
25    |                            expected due to this
26
27 error: aborting due to 3 previous errors
28
29 For more information about this error, try `rustc --explain E0308`.