summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-103646.rs
blob: f679640c5dc90103a97db56ca7ee5ada265e68de (plain)
1
2
3
4
5
6
7
8
9
10
11
trait Cat {
    fn nya() {}
}

fn uwu<T: Cat>(c: T) {
    c.nya();
    //~^ ERROR no method named `nya` found for type parameter `T` in the current scope
    //~| Suggestion T::nya()
}

fn main() {}