We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f32b7 commit bedd81eCopy full SHA for bedd81e
tests/ui/try-block/try-block-in-match-arm.rs
@@ -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