]> git.lizzy.rs Git - rust.git/blob - tests/ui/derives/clone-debug-dead-code-in-the-same-struct.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / derives / clone-debug-dead-code-in-the-same-struct.rs
1 #![forbid(dead_code)]
2
3 #[derive(Debug)]
4 pub struct Whatever {
5     pub field0: (),
6     field1: (), //~ ERROR fields `field1`, `field2`, `field3`, and `field4` are never read
7     field2: (),
8     field3: (),
9     field4: (),
10 }
11
12 fn main() {}