1a4d82fc JJ |
1 | // Test that moves of unsized values within closures are caught |
2 | // and rejected. |
3 | |
223e47cc |
4 | fn main() { |
c34b1796 |
5 | (|| Box::new(*(&[0][..])))(); |
8faf50e0 |
6 | //~^ ERROR the size for values of type |
e1599b0c |
7 | //~| ERROR the size for values of type |
223e47cc |
8 | } |