692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
27 lines
611 B
Plaintext
27 lines
611 B
Plaintext
error: unexpected `...`
|
|
--> $DIR/issue-70388-without-witness.rs:7:13
|
|
|
|
|
LL | let Foo(...) = Foo(0);
|
|
| ^^^ not a valid pattern
|
|
|
|
|
help: for a rest pattern, use `..` instead of `...`
|
|
|
|
|
LL - let Foo(...) = Foo(0);
|
|
LL + let Foo(..) = Foo(0);
|
|
|
|
|
|
|
error: unexpected `...`
|
|
--> $DIR/issue-70388-without-witness.rs:8:13
|
|
|
|
|
LL | let [_, ..., _] = [0, 1];
|
|
| ^^^ not a valid pattern
|
|
|
|
|
help: for a rest pattern, use `..` instead of `...`
|
|
|
|
|
LL - let [_, ..., _] = [0, 1];
|
|
LL + let [_, .., _] = [0, 1];
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|