rust/tests/ui/issues/issue-17651.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
173 B
Rust
Raw Normal View History

2014-10-12 22:14:36 +00:00
// Test that moves of unsized values within closures are caught
// and rejected.
fn main() {
(|| Box::new(*(&[0][..])))();
2018-07-10 21:10:13 +00:00
//~^ ERROR the size for values of type
2014-10-12 22:14:36 +00:00
}