]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/show-boxed-slice.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / array-slice-vec / show-boxed-slice.rs
1 // run-pass
2
3 #[derive(Debug)]
4 struct Foo(#[allow(unused_tuple_struct_fields)] Box<[u8]>);
5
6 pub fn main() {
7     println!("{:?}", Foo(Box::new([0, 1, 2])));
8 }