about summary refs log tree commit diff
path: root/tests/ui/unsized-locals/issue-30276-feature-flagged.rs
blob: 6b67ebbec1c0c441b5395e7f4a463a49d8f49fc1 (plain)
1
2
3
4
5
6
struct Test([i32]);

fn main() {
    let _x: fn(_) -> Test = Test;
    //~^ ERROR the size for values of type `[i32]` cannot be known at compilation time
}