rust/src/test/ui/lint/dead-code/tuple-struct-field.rs
2020-01-23 00:00:00 +00:00

13 lines
163 B
Rust

// check-pass
#![deny(dead_code)]
const LEN: usize = 4;
#[derive(Debug)]
struct Wrapper([u8; LEN]);
fn main() {
println!("{:?}", Wrapper([0, 1, 2, 3]));
}