Skip to content

Commit 433b519

Browse files
authored
Rollup merge of rust-lang#120540 - Fishrock123:test-try-block-in-match-arm, r=compiler-errors
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) Refs: rust-lang#31436
2 parents 219b2da + bedd81e commit 433b519

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)