mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
12 lines
221 B
Rust
12 lines
221 B
Rust
|
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
|
||
|
}
|