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
a9cb15d793495b6b6318c7a60c42d12ddcf1609a
rust/tests/ui/operator-recovery/less-than-greater-than.stderr

15 lines
328 B
Plaintext
Raw Normal View History

Recover on invalid operators <> and <=>
2021-12-06 18:55:58 +01:00
error: invalid comparison operator `<>`
--> $DIR/less-than-greater-than.rs:2:22
|
LL | println!("{}", 1 <> 2);
Make parse error suggestions verbose and fix spans Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
2024-07-06 03:07:46 +00:00
| ^^
|
help: `<>` is not a valid comparison operator, use `!=`
|
Show diff suggestion format on verbose replacement ``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2024-07-09 22:30:26 +00:00
LL - println!("{}", 1 <> 2);
LL + println!("{}", 1 != 2);
|
Recover on invalid operators <> and <=>
2021-12-06 18:55:58 +01:00
Show number in error message even for one error Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-21 15:44:16 +00:00
error: aborting due to 1 previous error
Recover on invalid operators <> and <=>
2021-12-06 18:55:58 +01:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2073ms Template: 4ms
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