]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/return/return-match-array-const.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / return / return-match-array-const.rs
index 9f3b9651642a2e447cf6e9cd5999267372f51af4..f21eac37c17b5325405b37638ee5fba497d0d15c 100644 (file)
@@ -1,13 +1,10 @@
 fn main() {
     [(); return match 0 { n => n }];
     //~^ ERROR: return statement outside of function body
-    //~| ERROR: `match` is not allowed in a `const`
 
     [(); return match 0 { 0 => 0 }];
     //~^ ERROR: return statement outside of function body
-    //~| ERROR: `match` is not allowed in a `const`
 
     [(); return match () { 'a' => 0, _ => 0 }];
     //~^ ERROR: return statement outside of function body
-    //~| ERROR: `match` is not allowed in a `const`
 }