mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00: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();
|
|
}
|