blob: 757bae4bb914dfbcc24fea764eec250aeed96cf9 [file] [log] [blame]
fn main() {
let foo: Box<[u8]> = Box::new(*b"foo");
let foo: [u8] = *foo; //~ERROR the size for values of type `[u8]` cannot be known at compilation time [E0277]
assert_eq!(&foo, b"foo" as &[u8]);
}