]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-17651.rs
Rollup merge of #106865 - GuillaumeGomez:add-gui-test-explanation, r=notriddle
[rust.git] / tests / 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 }