mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
14 lines
296 B
Plaintext
14 lines
296 B
Plaintext
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
|
|
|