diff options
Diffstat (limited to 'src/test/ui/array-slice-vec/show-boxed-slice.rs')
-rw-r--r-- | src/test/ui/array-slice-vec/show-boxed-slice.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/show-boxed-slice.rs b/src/test/ui/array-slice-vec/show-boxed-slice.rs new file mode 100644 index 000000000..c10f779b1 --- /dev/null +++ b/src/test/ui/array-slice-vec/show-boxed-slice.rs @@ -0,0 +1,8 @@ +// run-pass + +#[derive(Debug)] +struct Foo(#[allow(unused_tuple_struct_fields)] Box<[u8]>); + +pub fn main() { + println!("{:?}", Foo(Box::new([0, 1, 2]))); +} |