fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: no method named `nya` found for type parameter `T` in the current scope 2 --> $DIR/issue-103646.rs:6:7 3 | 4LL | fn uwu<T: Cat>(c: T) { 5 | - method `nya` not found for this type parameter 6LL | c.nya(); 7 | --^^^-- 8 | | | 9 | | this is an associated function, not a method 10 | help: use associated function syntax instead: `T::nya()` 11 | 12 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter 13note: the candidate is defined in the trait `Cat` 14 --> $DIR/issue-103646.rs:2:5 15 | 16LL | fn nya() {} 17 | ^^^^^^^^ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0599`.