rust/tests/ui/parser/removed-syntax-box.rs

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

11 lines
224 B
Rust
Raw Normal View History

fn main() {
struct T {
a: u8,
b: u8,
}
let _ = box () //~ ERROR expected expression, found reserved keyword `box`
let _ = box 1;
let _ = box T { a: 12, b: 18 };
let _ = box [5; 30];
}