summary refs log tree commit diff
path: root/src/test/ui/lint/dead-code/tuple-struct-field.rs
blob: c8fd32c64d6db757c16ce36778c26bc56b41faec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass

#![deny(dead_code)]

const LEN: usize = 4;

#[derive(Debug)]
struct Wrapper([u8; LEN]);

fn main() {
    println!("{:?}", Wrapper([0, 1, 2, 3]));
}