Sign in
fuchsia
/
third_party
/
rust
/
c38f75c21f016bffbf841ed5abce338f94201bde
/
.
/
tests
/
ui
/
try-block
/
try-block-catch.rs
blob: c3aa442ba66350a767f29bdbc6b7c4dce9b43194 [
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
}