]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/reference-unsized-locals.rs
Suggest coercion of `Result` using `?`
[rust.git] / tests / ui / unsized-locals / reference-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     assert_eq!(&foo, b"foo" as &[u8]);
10 }