]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/return/return-match-array-const.rs
2 [(); return match 0 { n => n }
];
3 //~^ ERROR: return statement outside of function body
5 [(); return match 0 { 0 => 0 }
];
6 //~^ ERROR: return statement outside of function body
8 [(); return match () { 'a' => 0, _ => 0 }
];
9 //~^ ERROR: return statement outside of function body