]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/keyword-box-as-identifier.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / keyword-box-as-identifier.rs
index 33961bb308467252048aed30674dc14e51aeb08c..2cf49b66be61c241c885e1dbece70c807f6c02fc 100644 (file)
@@ -1,3 +1,10 @@
 fn main() {
-    let box = "foo"; //~ error: expected pattern, found `=`
+    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 `,`
 }