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