This code compiles on stable, but is broken after #122661. This is causing a breakage in the bitvec crate.
#[derive(Debug)]
struct F {
data: bool
}
impl std::ops::Not for F {
type Output = bool;
fn not(self) -> Self::Output { !self.data }
}
fn main() {
let f = F { data: true };
assert!(f);
}
See discussion on the PR.
This code compiles on stable, but is broken after #122661. This is causing a breakage in the
bitveccrate.See discussion on the PR.