granite-rust/tests/ui/try-block/try-block-in-match-arm.rs
Jeremiah Senkpiel bedd81ef2a add test for try-block-in-match-arm
This is noted as an implementation concern under the tracking issue for `?` and `try` blocks. (Issue 31436)
2024-02-01 10:36:34 -08:00

11 lines
167 B
Rust

// check-pass
// compile-flags: --edition 2018
#![feature(try_blocks)]
fn main() {
let _ = match 1 {
1 => try {}
_ => Ok::<(), ()>(()),
};
}