mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
13 lines
296 B
Text
13 lines
296 B
Text
error: unexpected token: `<-`
|
|
--> $DIR/placement-syntax.rs:3:9
|
|
|
|
|
LL | if x<-1 {
|
|
| ^^
|
|
|
|
|
help: if you meant to write a comparison against a negative value, add a space in between `<` and `-`
|
|
|
|
|
LL | if x< -1 {
|
|
| ~~~
|
|
|
|
error: aborting due to 1 previous error
|
|
|