]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-70388-without-witness.stderr
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[rust.git] / src / test / ui / parser / issues / issue-70388-without-witness.stderr
1 error: unexpected `...`
2   --> $DIR/issue-70388-without-witness.rs:7: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-without-witness.rs:8: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: aborting due to 2 previous errors
20