We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried this code (aggressively simplified from Diesel, with which I originally encountered this bug):
trait Backend { type RawValue; } trait FromSql<B: Backend> {} impl<B: Backend<RawValue=()>> FromSql<B> for String {} impl<B: Backend<RawValue=u8>> FromSql<B> for String {}
I expected to see this happen: this code compiles, because by definition nothing can implement both Backend<RawValue=()> and Backend<RawValue=u8>.
Backend<RawValue=()>
Backend<RawValue=u8>
Instead, this happened: rustc gives error[E0119]: conflicting implementations of trait 'FromSql<_>' for type 'std::string::String'
error[E0119]: conflicting implementations of trait 'FromSql<_>' for type 'std::string::String'
This happens across stable/beta/nightly on the Rust playground.
The text was updated successfully, but these errors were encountered:
Looks like a duplicate of #20400
Sorry, something went wrong.
No branches or pull requests
I tried this code (aggressively simplified from Diesel, with which I originally encountered this bug):
I expected to see this happen: this code compiles, because by definition nothing can implement both
Backend<RawValue=()>
andBackend<RawValue=u8>
.Instead, this happened: rustc gives
error[E0119]: conflicting implementations of trait 'FromSql<_>' for type 'std::string::String'
Meta
This happens across stable/beta/nightly on the Rust playground.
The text was updated successfully, but these errors were encountered: