]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-30276.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[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