]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17651.rs
Auto merge of #87296 - Aaron1011:inert-warn, r=petrochenkov
[rust.git] / src / test / ui / issues / issue-17651.rs
1 // Test that moves of unsized values within closures are caught
2 // and rejected.
3
4 fn main() {
5     (|| Box::new(*(&[0][..])))();
6     //~^ ERROR the size for values of type
7     //~| ERROR the size for values of type
8 }