Skip to content

Commit

Permalink
add test for try-block-in-match-arm
Browse files Browse the repository at this point in the history
This is noted as an implementation concern under the tracking issue for `?` and `try` blocks. (Issue 31436)
  • Loading branch information
Fishrock123 committed Feb 1, 2024
1 parent 11f32b7 commit bedd81e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ui/try-block/try-block-in-match-arm.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// check-pass
// compile-flags: --edition 2018

#![feature(try_blocks)]

fn main() {
let _ = match 1 {
1 => try {}
_ => Ok::<(), ()>(()),
};
}

0 comments on commit bedd81e

Please sign in to comment.