]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-30276.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[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