summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/let-else-scope.rs
blob: 78a67769ef2843f1473ef427b4e379fc37df3fba (plain)
1
2
3
4
5
fn main() {
    let Some(x) = Some(2) else {
        panic!("{}", x); //~ ERROR cannot find value `x` in this scope
    };
}