]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/simple-unsized-locals.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / unsized-locals / simple-unsized-locals.rs
1 // run-pass
2
3 #![allow(incomplete_features)]
4 #![feature(unsized_locals)]
5
6 fn main() {
7     let foo: Box<[u8]> = Box::new(*b"foo");
8     let _foo: [u8] = *foo;
9 }