rust/src/test/ui/dead-code-tuple-struct-field.rs
Oliver Scherer 405d8b0bb3
Copyrite
2018-12-20 14:31:40 +01:00

13 lines
165 B
Rust

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