summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-102354.rs
blob: f881feb0060abc2cba308a8bd4a25460efd24aef (plain)
1
2
3
4
5
6
7
8
9
10
trait Trait {
    fn func() {}
}

impl Trait for i32 {}

fn main() {
    let x: i32 = 123;
    x.func(); //~ERROR no method
}