diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-11-21 15:44:16 +0000 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-11-24 19:15:52 +0100 |
| commit | 41e8d152dc5abb5a706999ada8b059d3420af8f3 (patch) | |
| tree | 2dae41c4e26e0195b5bd3472beac0445c8014915 /tests/ui/try-block | |
| parent | 4fd68eb47bad1c121417ac4450b2f0456150db86 (diff) | |
| download | rust-41e8d152dc5abb5a706999ada8b059d3420af8f3.tar.gz rust-41e8d152dc5abb5a706999ada8b059d3420af8f3.zip | |
Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
Diffstat (limited to 'tests/ui/try-block')
| -rw-r--r-- | tests/ui/try-block/try-block-catch.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/try-block/try-block-in-while.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/try-block/try-block-opt-init.stderr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/try-block/try-block-catch.stderr b/tests/ui/try-block/try-block-catch.stderr index 39cf943f4d8..185bcb4071b 100644 --- a/tests/ui/try-block/try-block-catch.stderr +++ b/tests/ui/try-block/try-block-catch.stderr @@ -6,5 +6,5 @@ LL | } catch { }; | = help: try using `match` on the result of the `try` block instead -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/try-block/try-block-in-while.stderr b/tests/ui/try-block/try-block-in-while.stderr index 62cc26dd401..2760e930102 100644 --- a/tests/ui/try-block/try-block-in-while.stderr +++ b/tests/ui/try-block/try-block-in-while.stderr @@ -6,6 +6,6 @@ LL | while try { false } {} | = help: the trait `Try` is not implemented for `bool` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/try-block/try-block-opt-init.stderr b/tests/ui/try-block/try-block-opt-init.stderr index c397385017f..1679fc2ac18 100644 --- a/tests/ui/try-block/try-block-opt-init.stderr +++ b/tests/ui/try-block/try-block-opt-init.stderr @@ -12,6 +12,6 @@ LL | assert_eq!(cfg_res, 5); | = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0381`. |
