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
ba6fe58095f98f070d161ffdc6c59b51b59d41db
rust/tests/ui/parser/better-expected.stderr

11 lines
301 B
Plaintext
Raw Normal View History

Move parse-fail tests to UI
2018-10-20 23:36:17 +03:00
error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `3`
tests: Do not use `-Z parse-only`, continue compilation to test recovery
2019-01-06 18:33:05 +03:00
--> $DIR/better-expected.rs:2:19
Move parse-fail tests to UI
2018-10-20 23:36:17 +03:00
|
Update tests
2019-03-09 15:03:44 +03:00
LL | let x: [isize 3];
Detect more cases of `=` to `:` typo When a `Local` is fully parsed, but not followed by a `;`, keep the `:` span arround and mention it. If the type could continue being parsed as an expression, suggest replacing the `:` with a `=`. ``` error: expected one of `!`, `+`, `->`, `::`, `;`, or `=`, found `.` --> file.rs:2:32 | 2 | let _: std::env::temp_dir().join("foo"); | - ^ expected one of `!`, `+`, `->`, `::`, `;`, or `=` | | | while parsing the type for `_` | help: use `=` if you meant to assign ``` Fix #119665.
2024-02-27 00:48:32 +00:00
| - ^ expected one of 7 possible tokens
| |
| while parsing the type for `x`
Move parse-fail tests to UI
2018-10-20 23:36:17 +03: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
Move parse-fail tests to UI
2018-10-20 23:36:17 +03:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3727ms 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