Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
closures
/
unsized_value_move.rs
blob: da39cc0f35f44d12370d88dc817856c5441fb065 [
file
] [
log
] [
blame
]
//! regression test for <https://github.com/rust-lang/rust/issues/17651>
// Test that moves of unsized values within closures are caught
// and rejected.
fn
main
()
{
(||
Box
::
new
(*(&[
0
][..])))();
//~^ ERROR the size for values of type
}