0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-22 10:25:09 +01:00
rust/tests/debuginfo/issue-7712.rs
2024-08-18 16:58:26 -04:00

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();
}