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:
parent
11f32b73e0
commit
bedd81ef2a
11
tests/ui/try-block/try-block-in-match-arm.rs
Normal file
11
tests/ui/try-block/try-block-in-match-arm.rs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// check-pass
|
||||||
|
// compile-flags: --edition 2018
|
||||||
|
|
||||||
|
#![feature(try_blocks)]
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let _ = match 1 {
|
||||||
|
1 => try {}
|
||||||
|
_ => Ok::<(), ()>(()),
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user