blob: 4e887f32753f1ea15da3fb823bae4232752d5ae5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// run-pass
#![allow(incomplete_features)]
#![feature(unsized_locals)]
fn main() {
let foo: Box<[u8]> = Box::new(*b"foo");
let foo: [u8] = *foo;
assert_eq!(&foo, b"foo" as &[u8]);
}
|