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
error[E0119]: conflicting implementations of trait `Reborrow<'_, '_>` for type `&mut _`:
--> src/main.rs:22:1
|
11 | / impl<'a, 'b, T> Reborrow<'a, 'b> for &'a mut T
12 | | where
13 | | 'a: 'b,
14 | | {
... |
19 | | }
20 | | }
| |_- first implementation here
21 |
22 | impl<'a, 'b, T: Copy> Reborrow<'a, 'b> for T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `&mut _`
|
= note: downstream crates may implement trait `std::marker::Copy` for type `&mut _`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0119`.
error: Could not compile `playground`.
To learn more, run the command again with --verbose.
This code causes Rust to ICE on stable, beta, and nightly.
Playground link
It is specifically the second impl (the one with the
Copy
bound) that causes the ICE.Backtrace
Tested on
rustc 1.23.0 (766bd11c8 2018-01-01)
,rustc 1.25.0-beta.7 (da64ca931 2018-03-03)
, andrustc 1.26.0-nightly (e026b59cf 2018-03-03)
The text was updated successfully, but these errors were encountered: