]> git.lizzy.rs Git - rust.git/blob - tests/ui/let-else/let-else-missing-semicolon.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / let-else / let-else-missing-semicolon.rs
1 fn main() {
2     let Some(x) = Some(1) else {
3         return;
4     } //~ ERROR expected `;`, found keyword `let`
5     let _ = "";
6     let Some(x) = Some(1) else {
7         panic!();
8     } //~ ERROR expected `;`, found `}`
9 }