blob: 2a829db538390e6178c170477bf08b498018b022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
struct GenericAssocMethod<T>(T);
impl<T> GenericAssocMethod<T> {
fn default_hello() {}
}
fn main() {
let x = GenericAssocMethod(33i32);
x.default_hello();
//~^ ERROR no method named `default_hello` found
}
|