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

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

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