mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
237 B
Rust
13 lines
237 B
Rust
#![forbid(dead_code)]
|
|
|
|
#[derive(Debug)]
|
|
pub struct Whatever {
|
|
pub field0: (),
|
|
field1: (), //~ ERROR fields `field1`, `field2`, `field3`, and `field4` are never read
|
|
field2: (),
|
|
field3: (),
|
|
field4: (),
|
|
}
|
|
|
|
fn main() {}
|