You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~ > cat test.rs
trait Foo {}
trait Bar {}
impl<T: Bar> Foo for T {}
impl Foo for int {}
~ > rustc --lib test.rs
test.rs:7:0: 7:19 error: conflicting implementations for a trait
test.rs:7 impl Foo for int {}
^~~~~~~~~~~~~~~~~~~
test.rs:5:0: 5:25 note: note conflicting implementation here
test.rs:5 impl<T: Bar> Foo for T {}
^~~~~~~~~~~~~~~~~~~~~~~~~
test.rs:5:0: 5:25 error: conflicting implementations for a trait
test.rs:5 impl<T: Bar> Foo for T {}
^~~~~~~~~~~~~~~~~~~~~~~~~
test.rs:7:0: 7:19 note: note conflicting implementation here
test.rs:7 impl Foo for int {}
^~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
I think this is related to #3429 but is far more general.
The text was updated successfully, but these errors were encountered:
subbug of #5527. I briefly tried to find whether this is a duplicate of another bug (besides #3429, which I think it is a dupe of, but this seems to be a simpler illustration of the issue so it may be worth keeping separately so that future bug seekers will identify it as for what they are looking).
…xFrednet
Clarify the purpose of the non_send lint
PR 2/2 for issue rust-lang#8045. Tried to tone down the warning message and clarify the intention of the lint. Specifically, I added a description that this lint tries to detect "types that are not safe to be sent to another thread".
changelog: none
r? `@xFrednet`
I think this is related to #3429 but is far more general.
The text was updated successfully, but these errors were encountered: