2017-12-10 19:47:55 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `std::ops::Drop` for type `MyStruct`:
|
2017-12-10 20:29:24 +00:00
|
|
|
--> $DIR/issue-28568.rs:17:1
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
|
13 | / impl Drop for MyStruct {
|
2017-12-10 20:29:24 +00:00
|
|
|
14 | | fn drop(&mut self) { }
|
|
|
|
15 | | }
|
2017-12-10 19:47:55 +00:00
|
|
|
| |_- first implementation here
|
2017-12-10 20:29:24 +00:00
|
|
|
16 |
|
|
|
|
17 | / impl Drop for MyStruct {
|
|
|
|
18 | | //~^ ERROR conflicting implementations of trait
|
|
|
|
19 | | fn drop(&mut self) { }
|
|
|
|
20 | | }
|
2017-12-10 19:47:55 +00:00
|
|
|
| |_^ conflicting implementation for `MyStruct`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|