This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-29 11:37:39 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
binop
/
placement-syntax.rs
7 lines
107 B
Rust
Raw
Permalink
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 21:58:54 +00:00
fn
main
(
)
{
let
x
=
-
5
;
Bring back suggestion for splitting `<-` into `< -` Closes #62632
2019-08-11 21:37:05 +00: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 21:58:54 +00:00
println!
(
"
ok
"
)
;
}
}
Reference in New Issue
Copy Permalink