rust/tests/ui/suggestions/issue-103646.rs

12 lines
199 B
Rust

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