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

13 lines
163 B
Rust
Raw Normal View History

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