summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/show-boxed-slice.rs
blob: c10f779b1f6172f3dd543756c99cf65c46ff3839 (plain)
1
2
3
4
5
6
7
8
// run-pass

#[derive(Debug)]
struct Foo(#[allow(unused_tuple_struct_fields)] Box<[u8]>);

pub fn main() {
    println!("{:?}", Foo(Box::new([0, 1, 2])));
}