rust/tests/ui/try-block/try-block-catch.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

11 lines
246 B
Plaintext

error: keyword `catch` cannot follow a `try` block
--> $DIR/try-block-catch.rs:8:7
|
LL | } catch { };
| ^^^^^
|
= help: try using `match` on the result of the `try` block instead
error: aborting due to 1 previous error