summaryrefslogtreecommitdiff
path: root/tests/ui/derives/clone-debug-dead-code-in-the-same-struct.rs
blob: 885dacc727af6443f48b10d67bcba0a9b3f03d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![forbid(dead_code)]

#[derive(Debug)]
pub struct Whatever { //~ ERROR struct `Whatever` is never constructed
    pub field0: (),
    field1: (),
    field2: (),
    field3: (),
    field4: (),
}

fn main() {}