mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
189 B
Rust
12 lines
189 B
Rust
struct MyStruct;
|
|
|
|
impl Drop for MyStruct {
|
|
fn drop(&mut self) { }
|
|
}
|
|
|
|
impl Drop for MyStruct {
|
|
//~^ ERROR conflicting implementations of trait
|
|
fn drop(&mut self) { }
|
|
}
|
|
|
|
fn main() {}
|