1 // Checks that derived implementations of Clone and Debug do not
2 // contribute to dead code analysis (issue #84647).
7 //~^ ERROR: field `f` is never read
11 //~^ ERROR: field `f` is never read
15 //~^ ERROR: field `f` is never read
17 #[derive(Debug,Clone)]
19 //~^ ERROR: field `f` is never read
22 //~^ ERROR: field `f` is never read
23 // Custom impl, still doesn't read f
25 fn clone(&self) -> Self {
31 // Custom impl that actually reads f
33 fn clone(&self) -> Self {