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.
83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
error: expected one of `=>`, `if`, or `|`, found `+`
|
|
--> $DIR/pat-recover-wildcards.rs:5:11
|
|
|
|
|
LL | _ + 1 => ()
|
|
| ^ expected one of `=>`, `if`, or `|`
|
|
|
|
error: expected one of `)`, `,`, or `|`, found `%`
|
|
--> $DIR/pat-recover-wildcards.rs:11:12
|
|
|
|
|
LL | (_ % 4) => ()
|
|
| ^ expected one of `)`, `,`, or `|`
|
|
|
|
error: expected one of `=>`, `if`, or `|`, found `.`
|
|
--> $DIR/pat-recover-wildcards.rs:17:10
|
|
|
|
|
LL | _.x() => ()
|
|
| ^ expected one of `=>`, `if`, or `|`
|
|
|
|
error: expected one of `=>`, `if`, or `|`, found `..=`
|
|
--> $DIR/pat-recover-wildcards.rs:23:10
|
|
|
|
|
LL | _..=4 => ()
|
|
| ^^^ expected one of `=>`, `if`, or `|`
|
|
|
|
error: expected one of `=>`, `if`, or `|`, found reserved identifier `_`
|
|
--> $DIR/pat-recover-wildcards.rs:29:11
|
|
|
|
|
LL | .._ => ()
|
|
| ^ expected one of `=>`, `if`, or `|`
|
|
|
|
error[E0586]: inclusive range with no end
|
|
--> $DIR/pat-recover-wildcards.rs:35:10
|
|
|
|
|
LL | 0..._ => ()
|
|
| ^^^
|
|
|
|
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
|
help: use `..` instead
|
|
|
|
|
LL - 0..._ => ()
|
|
LL + 0.._ => ()
|
|
|
|
|
|
|
error: expected one of `=>`, `if`, or `|`, found reserved identifier `_`
|
|
--> $DIR/pat-recover-wildcards.rs:35:13
|
|
|
|
|
LL | 0..._ => ()
|
|
| ^ expected one of `=>`, `if`, or `|`
|
|
|
|
error: expected one of `)`, `,`, or `|`, found `*`
|
|
--> $DIR/pat-recover-wildcards.rs:43:12
|
|
|
|
|
LL | (_ * 0)..5 => ()
|
|
| ^ expected one of `)`, `,`, or `|`
|
|
|
|
error: expected one of `=>`, `if`, or `|`, found `(`
|
|
--> $DIR/pat-recover-wildcards.rs:49:11
|
|
|
|
|
LL | ..(_) => ()
|
|
| ^ expected one of `=>`, `if`, or `|`
|
|
|
|
error: expected a pattern range bound, found an expression
|
|
--> $DIR/pat-recover-wildcards.rs:55:14
|
|
|
|
|
LL | 4..=(2 + _) => ()
|
|
| ^^^^^ arbitrary expressions are not allowed in patterns
|
|
|
|
error: range pattern bounds cannot have parentheses
|
|
--> $DIR/pat-recover-wildcards.rs:55:13
|
|
|
|
|
LL | 4..=(2 + _) => ()
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - 4..=(2 + _) => ()
|
|
LL + 4..=2 + _ => ()
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0586`.
|