Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
try-block
/
try-block-catch.rs
blob: d165015611d04c16396c30b3d2e0b7481146b1de [
file
] [
log
] [
blame
]
// compile-flags: --edition 2018
#![
feature
(
try_blocks
)]
fn
main
()
{
let
res
:
Option
<
bool
>
=
try
{
true
}
catch
{
};
//~^ ERROR keyword `catch` cannot follow a `try` block
}