mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 10:25:09 +01:00
16 lines
224 B
Rust
16 lines
224 B
Rust
//@ compile-flags:-C debuginfo=1
|
|
|
|
pub trait TraitWithDefaultMethod : Sized {
|
|
fn method(self) {
|
|
()
|
|
}
|
|
}
|
|
|
|
struct MyStruct;
|
|
|
|
impl TraitWithDefaultMethod for MyStruct { }
|
|
|
|
pub fn main() {
|
|
MyStruct.method();
|
|
}
|