about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/show-boxed-slice.rs
blob: 89521eaf3fef1e155a27348b5eefc7e078273141 (plain)
1
2
3
4
5
6
7
8
//@ run-pass

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

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