]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-overlap-issue-23516.stderr
Show a note where a macro failed to match
[rust.git] / src / test / ui / coherence / coherence-overlap-issue-23516.stderr
1 error[E0119]: conflicting implementations of trait `Sweet` for type `std::boxed::Box<_>`
2   --> $DIR/coherence-overlap-issue-23516.rs:8:1
3    |
4 LL | impl<T:Sugar> Sweet for T { }
5    | ------------------------- first implementation here
6 LL | impl<U:Sugar> Sweet for Box<U> { }
7    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::boxed::Box<_>`
8    |
9    = note: downstream crates may implement trait `Sugar` for type `std::boxed::Box<_>`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0119`.