Skip to content

Commit bedd81e

Browse files
committed
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)
1 parent 11f32b7 commit bedd81e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
// compile-flags: --edition 2018
3+
4+
#![feature(try_blocks)]
5+
6+
fn main() {
7+
let _ = match 1 {
8+
1 => try {}
9+
_ => Ok::<(), ()>(()),
10+
};
11+
}

0 commit comments

Comments
 (0)