Closed
Description
Minimal reproduction:
#[derive(Eq, PartialEq, PartialOrd)]
struct Foo<'a, T: 'a>(&'a mut [T]);
This produces the following error message repeated precisely 8 times. I cannot tell you why this is, I have no idea. I assume it's a failure in the PartialOrd
derivation code that's not being reported correctly.
error[E0389]: cannot borrow data mutably in a `&` reference
--> src/main.rs:2:23
|
2 | struct Foo<'a, T: 'a>(&'a mut [T]);
| ^^^^^^^^^^^^
| |
| assignment into an immutable reference
| consider changing this to `&'a mut [T])`