rust/tests/ui/parser/match-arrows-block-then-binop.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

16 lines
308 B
Plaintext

error: expected pattern, found `+`
--> $DIR/match-arrows-block-then-binop.rs:5:9
|
LL | } + 5
| ^ expected pattern
|
help: parentheses are required to parse this as an expression
|
LL ~ 0 => ({
LL | 0
LL ~ }) + 5
|
error: aborting due to 1 previous error