2015-01-20 10:57:10 -08:00
|
|
|
// compile-flags:-C debuginfo=1
|
2014-10-29 10:13:29 +04:00
|
|
|
// min-lldb-version: 310
|
2013-07-11 18:00:21 +02:00
|
|
|
|
2014-12-19 06:54:09 -05:00
|
|
|
pub trait TraitWithDefaultMethod : Sized {
|
2013-08-09 01:25:24 -07:00
|
|
|
fn method(self) {
|
2013-07-11 18:00:21 +02:00
|
|
|
()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct MyStruct;
|
|
|
|
|
|
|
|
impl TraitWithDefaultMethod for MyStruct { }
|
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {
|
2013-07-11 18:00:21 +02:00
|
|
|
MyStruct.method();
|
2013-07-23 20:16:26 -04:00
|
|
|
}
|