Closed
Description
openedon Apr 28, 2021
struct A { f: () }
#[derive(Clone)]
struct B { f: () }
fn main() {
let _ = A { f: () };
let _ = B { f: () };
}
Only A
's field triggers the warning. It's clear why B
doesn't do this, but it clearly should. Doesn't seem easy to fix though :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment