summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsized-locals/issue-30276.rs
blob: 9c4bf062a40e9d5ec66eedf954e14223dc9c9250 (plain)
1
2
3
4
5
struct Test([i32]);

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