2018-09-06 12:41:12 +00:00
|
|
|
// run-pass
|
|
|
|
|
2020-10-16 22:37:54 +00:00
|
|
|
#![allow(incomplete_features)]
|
2018-05-28 15:12:55 +00: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]);
|
|
|
|
}
|