about summary refs log tree commit diff
path: root/src/test/ui/dead-code-tuple-struct-field.rs
blob: 92a67950986b0e4f4c492ec8e1f0aae20a4877ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass (FIXME(62277): could be check-pass?)

#![deny(dead_code)]

const LEN: usize = 4;

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

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