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

13 lines
165 B
Rust
Raw Normal View History

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