summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-87814-1.rs
blob: 5cf01ddf5d71b042024836aac473695c4ad01609 (plain)
1
2
3
4
5
6
7
8
// check-pass
fn main() {
    let mut schema_all = vec![];
    (0..42).for_each(|_x| match Err(()) as Result<(), _> {
        Ok(()) => schema_all.push(()),
        Err(_) => (),
    });
}