summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-87814-2.rs
blob: efe77f90f0658b0b2b03752f5b4d931ca8c5617e (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass

fn main() {
    let mut schema_all: (Vec<String>, Vec<String>) = (vec![], vec![]);

    let _c = || match schema_all.0.try_reserve(1) as Result<(), _> {
        Ok(()) => (),
        Err(_) => (),
    };
}