summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-99597.rs
blob: 8ba9e1fdd62213fc09c20324ca4d85d56323bbdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(dead_code)]

trait T1 { }

trait T2 {
    fn test(&self) { }
}

fn go(s: &impl T1) {
    //~^ SUGGESTION (
    s.test();
    //~^ ERROR no method named `test`
}

fn main() { }