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 17:14:36 -05:00
// Test that moves of unsized values within closures are caught
// and rejected.
fn main() {
(|| Box::new(*(&[0][..])))();
2018-07-10 16:10:13 -05:00
//~^ ERROR the size for values of type
2014-10-12 17:14:36 -05:00
}