blob: a39b8711dd8745dd55309ab81c14ae6390182ed3 (
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(33);
x.default_hello();
//~^ ERROR no method named `default_hello` found
}
|