Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
72f8043d44a8925e469daf5c10e2630c80c2a7d4
rust/src/test/ui/placement-syntax.rs

7 lines
109 B
Rust
Raw Normal View History

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 14:58:54 -07:00
fn main() {
let x = -5;
Update tests
2019-05-13 22:19:19 +01:00
if x<-1 { //~ ERROR expected `{`, found `<-`
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 14:58:54 -07:00
println!("ok");
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2481ms Template: 20ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API