]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-30276.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / unsized-locals / issue-30276.rs
1 struct Test([i32]);
2
3 fn main() {
4     let _x: fn(_) -> Test = Test;
5 } //~^the size for values of type `[i32]` cannot be known at compilation time