You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggest associated const for incorrect use of let in traits #101797
Compiling playground v0.0.1 (/playground)
error: non-item in item list
--> src/main.rs:2:5
|
1 | trait Trait {
| - item list starts here
2 | let x: i32;
| ^^^ non-item starts here
3 | }
| - item list ends here
error: could not compile `playground` due to previous error
Ideally the output should suggest changing the let to a const for associated const. Thanks.
Activity
chenyukang commentedon Sep 15, 2022
@rustbot claim
fix rust-lang#101797: Suggest associated const for incorrect use of l…
Rollup merge of rust-lang#101843 - chenyukang:fix-101797, r=oli-obk