about summary refs log tree commit diff
path: root/tests/ui/parser/suggest-assoc-const.rs
blob: 6d0244130a9b507c2dd7bc7ab2604ccf2bf2fb67 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Issue: 101797, Suggest associated const for incorrect use of let in traits
//@ run-rustfix
#![allow(dead_code)]
trait Trait {
    let _X: i32;
    //~^ ERROR non-item in item list
}

fn main() {

}