Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
try-block
/
try-block-catch.rs
blob: c3aa442ba66350a767f29bdbc6b7c4dce9b43194 [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags: --edition 2018
#![
feature
(
try_blocks
)]
fn
main
()
{
let
res
:
Option
<
bool
>
=
try
{
true
}
catch
{
};
//~^ ERROR keyword `catch` cannot follow a `try` block
}