mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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();
|
|
}
|