]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/pat-lt-bracket-7.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / pat-lt-bracket-7.rs
index 020fdb845e8b5fd4ca73f041532fb0d6cb4dbe3d..327aef5ad15703cd16770ccdcd00dd8803c5e0ea 100644 (file)
@@ -2,7 +2,8 @@ fn main() {
     struct Thing(u8, [u8; 0]);
     let foo = core::iter::empty();
 
-    for Thing(x[]) in foo {} //~ ERROR: expected one of `)`, `,`, or `@`, found `[`
+    for Thing(x[]) in foo {}
+    //~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
 }
 
 const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types