summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17651.rs
blob: 7629a5a3be1ea475a59ff154d41fecfb8f7669f6 (plain)
1
2
3
4
5
6
7
// Test that moves of unsized values within closures are caught
// and rejected.

fn main() {
    (|| Box::new(*(&[0][..])))();
    //~^ ERROR the size for values of type
}