Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to stable TryInto/TryFrom traits #22

Open
Diggsey opened this issue Feb 26, 2020 · 1 comment
Open

Switch to stable TryInto/TryFrom traits #22

Diggsey opened this issue Feb 26, 2020 · 1 comment

Comments

@Diggsey
Copy link

Diggsey commented Feb 26, 2020

No description provided.

@djc
Copy link

djc commented May 26, 2020

The simple approach to this seems to run into coherence trouble:

error[E0119]: conflicting implementations of trait `std::convert::TryFrom<_>` for type `String<_>`:
   --> src/lib.rs:218:1
    |
218 | / impl<T> TryFrom<T> for String<T>
219 | | where
220 | |     T: AsRef<[u8]> + StableAsRef,
221 | | {
...   |
227 | |     }
228 | | }
    | |_^
    |
    = note: conflicting implementation in crate `core`:
            - impl<T, U> std::convert::TryFrom<U> for T
              where U: std::convert::Into<T>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants