blob: 11143f79161a83a7dd805af574343bdd397c53a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ compile-flags:-C debuginfo=1
pub trait TraitWithDefaultMethod : Sized {
fn method(self) {
()
}
}
struct MyStruct;
impl TraitWithDefaultMethod for MyStruct { }
pub fn main() {
MyStruct.method();
}
|