2022-09-15 15:18:23 +08:00
|
|
|
// Issue: 101797, Suggest associated const for incorrect use of let in traits
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2024-02-07 10:42:01 +08:00
|
|
|
#![allow(dead_code)]
|
2022-09-15 15:18:23 +08:00
|
|
|
trait Trait {
|
|
|
|
let _X: i32;
|
|
|
|
//~^ ERROR non-item in item list
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
|
|
|
}
|