2017-12-10 19:47:55 +00:00
|
|
|
error[E0592]: duplicate definitions with name `dummy`
|
2023-09-20 19:41:19 +00:00
|
|
|
--> $DIR/coherence-overlap-issue-23516-inherent.rs:12:25
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | impl<T:Sugar> Cake<T> { fn dummy(&self) { } }
|
2020-08-12 21:02:14 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
|
2019-10-26 15:28:02 +00:00
|
|
|
LL |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | impl<U:Sugar> Cake<Box<U>> { fn dummy(&self) { } }
|
2020-08-12 21:02:14 +00:00
|
|
|
| --------------- other definition for `dummy`
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
|
= note: downstream crates may implement trait `Sugar` for type `std::boxed::Box<_>`
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-06-14 01:54:27 +00:00
|
|
|
For more information about this error, try `rustc --explain E0592`.
|