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/polymorphization | |
| 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/polymorphization')
| -rw-r--r-- | tests/ui/polymorphization/const_parameters/functions.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/polymorphization/promoted-function-1.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/polymorphization/promoted-function-2.stderr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/polymorphization/const_parameters/functions.stderr b/tests/ui/polymorphization/const_parameters/functions.stderr index 9d0922ac7ca..a3033d1dcab 100644 --- a/tests/ui/polymorphization/const_parameters/functions.stderr +++ b/tests/ui/polymorphization/const_parameters/functions.stderr @@ -13,5 +13,5 @@ error: item has unused generic parameters LL | pub fn unused<const T: usize>() { | ^^^^^^ -------------- generic parameter `T` is unused -error: aborting due to previous error; 1 warning emitted +error: aborting due to 1 previous error; 1 warning emitted diff --git a/tests/ui/polymorphization/promoted-function-1.stderr b/tests/ui/polymorphization/promoted-function-1.stderr index fcbb8694923..8ab0320aafe 100644 --- a/tests/ui/polymorphization/promoted-function-1.stderr +++ b/tests/ui/polymorphization/promoted-function-1.stderr @@ -4,5 +4,5 @@ error: item has unused generic parameters LL | pub fn test<T>() { | ^^^^ - generic parameter `T` is unused -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/polymorphization/promoted-function-2.stderr b/tests/ui/polymorphization/promoted-function-2.stderr index 547569df7dc..a5d3bee11d9 100644 --- a/tests/ui/polymorphization/promoted-function-2.stderr +++ b/tests/ui/polymorphization/promoted-function-2.stderr @@ -13,5 +13,5 @@ error: item has unused generic parameters LL | fn test<T>() { | ^^^^ - generic parameter `T` is unused -error: aborting due to previous error; 1 warning emitted +error: aborting due to 1 previous error; 1 warning emitted |
