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)
This commit is contained in:
Jeremiah Senkpiel 2024-01-31 16:58:35 -08:00
parent 11f32b73e0
commit bedd81ef2a

View File

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