summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/let-else-missing-semicolon.rs
blob: d87ac90c1a772e9720a39ccce4ffa56fbcfbf91f (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let Some(x) = Some(1) else {
        return;
    } //~ ERROR expected `;`, found keyword `let`
    let _ = "";
    let Some(x) = Some(1) else {
        panic!();
    } //~ ERROR expected `;`, found `}`
}