mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
30 lines
935 B
Plaintext
30 lines
935 B
Plaintext
error: unexpected `...`
|
|
--> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:4:13
|
|
|
|
|
LL | let Foo(...) = Foo(0);
|
|
| ^^^
|
|
| |
|
|
| not a valid pattern
|
|
| help: for a rest pattern, use `..` instead of `...`
|
|
|
|
error: unexpected `...`
|
|
--> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:5:13
|
|
|
|
|
LL | let [_, ..., _] = [0, 1];
|
|
| ^^^
|
|
| |
|
|
| not a valid pattern
|
|
| help: for a rest pattern, use `..` instead of `...`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:6:33
|
|
|
|
|
LL | let _recovery_witness: () = 0;
|
|
| -- ^ expected `()`, found integer
|
|
| |
|
|
| expected due to this
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|