rust/src/test/ui/derives/clone-debug-dead-code-in-the-same-struct.rs

13 lines
314 B
Rust
Raw Normal View History

#![forbid(dead_code)]
#[derive(Debug)]
pub struct Whatever {
pub field0: (),
field1: (), //~ERROR field is never read: `field1
field2: (), //~ERROR field is never read: `field2
field3: (), //~ERROR field is never read: `field3
field4: (), //~ERROR field is never read: `field4
}
fn main() {}