File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- error[E0119]: conflicting implementations of trait `std::ops::Drop` for type `std::boxed::Box <_>`:
1
+ error[E0119]: conflicting implementations of trait `std::ops::Drop` for type `std::sync::Arc <_>`:
2
2
--> $DIR/issue-41974.rs:17:1
3
3
|
4
4
LL | impl<T> Drop for T where T: A { //~ ERROR E0119
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: conflicting implementation in crate `alloc`:
8
- - impl<T> std::ops::Drop for std::boxed::Box <T>
8
+ - impl<T> std::ops::Drop for std::sync::Arc <T>
9
9
where T: ?Sized;
10
- = note: downstream crates may implement trait `A` for type `std::boxed::Box <_>`
10
+ = note: downstream crates may implement trait `A` for type `std::sync::Arc <_>`
11
11
12
12
error[E0120]: the Drop trait may only be implemented on structures
13
13
--> $DIR/issue-41974.rs:17:18
You can’t perform that action at this time.
0 commit comments