Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/parser/suggest-assoc-const.stderr

15 lines
277 B
Plaintext
Raw Normal View History

fix #101797: Suggest associated const for incorrect use of let in traits
2022-09-15 15:18:23 +08:00
error: non-item in item list
Update tests
2024-02-07 10:42:01 +08:00
--> $DIR/suggest-assoc-const.rs:5:5
fix #101797: Suggest associated const for incorrect use of let in traits
2022-09-15 15:18:23 +08:00
|
LL | let _X: i32;
Use verbose style when suggesting changing `const` with `let`
2024-07-05 19:32:17 +00:00
| ^^^
|
help: consider using `const` instead of `let` for associated const
|
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 - let _X: i32;
LL + const _X: i32;
|
fix #101797: Suggest associated const for incorrect use of let in traits
2022-09-15 15:18:23 +08: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
fix #101797: Suggest associated const for incorrect use of let in traits
2022-09-15 15:18:23 +08:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1434ms Template: 3ms
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