Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-17651.rs
blob: 7629a5a3be1ea475a59ff154d41fecfb8f7669f6 [
file
] [
log
] [
blame
] [
edit
]
// Test that moves of unsized values within closures are caught
// and rejected.
fn
main
()
{
(||
Box
::
new
(*(&[
0
][..])))();
//~^ ERROR the size for values of type
}