rust/tests/ui/closures/issue-87814-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
222 B
Rust
Raw Normal View History

//@ 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(_) => (),
};
}