Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
src
/
test
/
ui
/
feature-gates
/
feature-gate-try_blocks.rs
blob: 06cadd82c0731be8c263206d4e99176ab4bf17af [
file
] [
log
] [
blame
]
// compile-flags: --edition 2018
pub
fn
main
()
{
let
try_result
:
Option
<
_
>
=
try
{
//~ ERROR `try` expression is experimental
let
x
=
5
;
x
};
assert_eq
!(
try_result
,
Some
(
5
));
}