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