summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/issue-102317.rs
blob: 7369b4938eed482f6bcc442774048083cbea6b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// issue #102317
// build-pass
// compile-flags: --edition 2021 -C opt-level=3 -Zvalidate-mir

struct SegmentJob;

impl Drop for SegmentJob {
    fn drop(&mut self) {}
}

pub async fn run() -> Result<(), ()> {
    let jobs = Vec::<SegmentJob>::new();
    let Some(_job) = jobs.into_iter().next() else {
        return Ok(())
    };

    Ok(())
}

fn main() {}