summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-30371.rs
blob: eea548c482ff2f9ffc08d61331b0dd873b8df9dc (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![allow(unreachable_code)]
#![allow(for_loops_over_fallibles)]
#![deny(unused_variables)]

fn main() {
    for _ in match return () {
        () => Some(0),
    } {}
}