This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
1e5b2da94b
rust
/
tests
/
ui
/
binop
/
placement-syntax.rs
7 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
Suggest correct comparison against negative literal When parsing as emplacement syntax (`x<-1`), suggest the correct syntax for comparison against a negative value (`x< -1`).
2018-06-28 16:58:54 -05:00
fn
main
(
)
{
let
x
=
-
5
;
Bring back suggestion for splitting `<-` into `< -` Closes #62632
2019-08-11 16:37:05 -05:00
if
x
<
-
1
{
//~ ERROR unexpected token: `<-`
Suggest correct comparison against negative literal When parsing as emplacement syntax (`x<-1`), suggest the correct syntax for comparison against a negative value (`x< -1`).
2018-06-28 16:58:54 -05:00
println!
(
"
ok
"
)
;
}
}
Reference in New Issue
Copy Permalink