]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17651.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[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 }