2015-09-26 23:12:11 +03:00
|
|
|
struct MyStruct;
|
|
|
|
|
|
|
|
|
|
impl Drop for MyStruct {
|
|
|
|
|
fn drop(&mut self) { }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Drop for MyStruct {
|
2015-12-29 21:18:24 -08:00
|
|
|
//~^ ERROR conflicting implementations of trait
|
2015-09-26 23:12:11 +03:00
|
|
|
fn drop(&mut self) { }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|