]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/coherence-overlap-issue-23516-inherent.stderr
Auto merge of #106853 - TimNN:undo-remap, r=oli-obk
[rust.git] / tests / ui / coherence / coherence-overlap-issue-23516-inherent.stderr
1 error[E0592]: duplicate definitions with name `dummy`
2   --> $DIR/coherence-overlap-issue-23516-inherent.rs:9:25
3    |
4 LL | impl<T:Sugar> Cake<T> { fn dummy(&self) { } }
5    |                         ^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
6 LL |
7 LL | impl<U:Sugar> Cake<Box<U>> { fn dummy(&self) { } }
8    |                              --------------- other definition for `dummy`
9    |
10    = note: downstream crates may implement trait `Sugar` for type `std::boxed::Box<_>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0592`.