2020-07-02 14:32:12 +09:00
|
|
|
error: unexpected `...`
|
|
|
|
--> $DIR/issue-70388-without-witness.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let Foo(...) = Foo(0);
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^ not a valid pattern
|
|
|
|
|
|
|
|
|
help: for a rest pattern, use `..` instead of `...`
|
|
|
|
|
|
|
|
|
LL - let Foo(...) = Foo(0);
|
|
|
|
LL + let Foo(..) = Foo(0);
|
|
|
|
|
|
2020-07-02 14:32:12 +09:00
|
|
|
|
|
|
|
error: unexpected `...`
|
|
|
|
--> $DIR/issue-70388-without-witness.rs:8:13
|
|
|
|
|
|
|
|
|
LL | let [_, ..., _] = [0, 1];
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^ not a valid pattern
|
|
|
|
|
|
|
|
|
help: for a rest pattern, use `..` instead of `...`
|
|
|
|
|
|
|
|
|
LL - let [_, ..., _] = [0, 1];
|
|
|
|
LL + let [_, .., _] = [0, 1];
|
|
|
|
|
|
2020-07-02 14:32:12 +09:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|