mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
17 lines
248 B
Rust
17 lines
248 B
Rust
// compile-flags:-C debuginfo=1
|
|
// min-lldb-version: 310
|
|
|
|
pub trait TraitWithDefaultMethod : Sized {
|
|
fn method(self) {
|
|
()
|
|
}
|
|
}
|
|
|
|
struct MyStruct;
|
|
|
|
impl TraitWithDefaultMethod for MyStruct { }
|
|
|
|
pub fn main() {
|
|
MyStruct.method();
|
|
}
|