summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/keyword-box-as-identifier.rs
blob: 2cf49b66be61c241c885e1dbece70c807f6c02fc (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    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 `,`
}