rust/src/test/ui/lint/dead-code/tuple-struct-field.rs

13 lines
200 B
Rust
Raw Normal View History

// 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]));
}