2018-09-06 07:41:12 -05:00
|
|
|
// run-pass
|
|
|
|
|
2020-10-16 17:37:54 -05:00
|
|
|
#![allow(incomplete_features)]
|
2018-05-28 10:12:55 -05:00
|
|
|
#![feature(unsized_locals)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let foo: Box<[u8]> = Box::new(*b"foo");
|
|
|
|
let foo: [u8] = *foo;
|
|
|
|
assert_eq!(&foo, b"foo" as &[u8]);
|
|
|
|
}
|