rust/tests/ui/parser/keyword-box-as-identifier.rs

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

11 lines
266 B
Rust
Raw Normal View History

2016-04-24 18:35:50 +00:00
fn main() {
2022-06-08 04:40:55 +00:00
let box = 0;
//~^ ERROR expected pattern, found `=`
let box: bool;
//~^ ERROR expected pattern, found `:`
let mut box = 0;
//~^ ERROR expected pattern, found `=`
let (box,) = (0,);
//~^ ERROR expected pattern, found `,`
2016-04-24 18:35:50 +00:00
}