Created
February 5, 2022 17:42
-
-
Save alexreg/d3be0258b7c1ed7ef7851a7c99e5f713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0119]: conflicting implementations of trait `de::BorshDeserialize` for type `std::boxed::Box<_>` | |
--> crates/borsh/src/iter.rs:36:1 | |
| | |
36 | / impl<T: FromCanonicalIterator<A>, A> BorshDeserialize for T | |
37 | | where | |
38 | | T: IntoCanonicalIterator<Item = A>, | |
39 | | A: BorshDeserialize, | |
... | | |
48 | | } | |
49 | | } | |
| |_^ conflicting implementation for `std::boxed::Box<_>` | |
| | |
::: crates/borsh/src/de.rs:392:1 | |
| | |
392 | / impl<T, U> BorshDeserialize for Box<T> | |
393 | | where | |
394 | | U: Into<Box<T>> + Borrow<T>, | |
395 | | T: ToOwned<Owned = U> + ?Sized, | |
... | | |
401 | | } | |
402 | | } | |
| |_- first implementation here | |
| | |
= note: downstream crates may implement trait `iter::FromCanonicalIterator<_>` for type `std::boxed::Box<_>` | |
= note: downstream crates may implement trait `iter::IntoCanonicalIterator` for type `std::boxed::Box<_>` | |
error[E0119]: conflicting implementations of trait `ser::BorshSerialize` for type `&_` | |
--> crates/borsh/src/ser.rs:173:1 | |
| | |
173 | impl<T: BorshSerialize + ?Sized> BorshSerialize for &T { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_` | |
| | |
::: crates/borsh/src/iter.rs:22:1 | |
| | |
22 | / impl<T: IntoCanonicalIterator> BorshSerialize for T | |
23 | | where | |
24 | | T::Item: BorshSerialize, | |
25 | | { | |
... | | |
33 | | } | |
34 | | } | |
| |_- first implementation here | |
| | |
= note: downstream crates may implement trait `iter::IntoCanonicalIterator` for type `&_` | |
= note: downstream crates may implement trait `std::iter::Iterator` for type `&_` | |
error[E0119]: conflicting implementations of trait `ser::BorshSerialize` for type `std::boxed::Box<_>` | |
--> crates/borsh/src/ser.rs:320:1 | |
| | |
320 | impl<T: BorshSerialize + ?Sized> BorshSerialize for Box<T> { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::boxed::Box<_>` | |
| | |
::: crates/borsh/src/iter.rs:22:1 | |
| | |
22 | / impl<T: IntoCanonicalIterator> BorshSerialize for T | |
23 | | where | |
24 | | T::Item: BorshSerialize, | |
25 | | { | |
... | | |
33 | | } | |
34 | | } | |
| |_- first implementation here | |
| | |
= note: downstream crates may implement trait `iter::IntoCanonicalIterator` for type `std::boxed::Box<_>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment