]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-30276-feature-flagged.rs
Suggest coercion of `Result` using `?`
[rust.git] / tests / ui / unsized-locals / issue-30276-feature-flagged.rs
1 #![feature(unsized_locals)]
2 //~^ WARN the feature `unsized_locals` is incomplete
3
4 struct Test([i32]);
5
6 fn main() {
7     let _x: fn(_) -> Test = Test;
8 } //~^the size for values of type `[i32]` cannot be known at compilation time