]> git.proxmox.com Git - rustc.git/blob - src/test/ui/coherence/coherence-overlap-issue-23516.stderr
Update upstream source from tag 'upstream/1.67.1+dfsg1'
[rustc.git] / src / test / ui / coherence / coherence-overlap-issue-23516.stderr
1 error[E0119]: conflicting implementations of trait `Sweet` for type `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 `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`.