blob: d8b06d663affcb159b43dff3a79e6bf4503dcfa0 (
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() {}
|