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/mut | |
| 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/mut')
| -rw-r--r-- | tests/ui/mut/mut-cant-alias.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/mut/mut-cross-borrowing.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/mut/mut-ref.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/mut/mutable-class-fields-2.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/mut/mutable-class-fields.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/mut/mutable-enum-indirect.stderr | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/mut/mut-cant-alias.stderr b/tests/ui/mut/mut-cant-alias.stderr index d56e45db13d..4106ebdd1cb 100644 --- a/tests/ui/mut/mut-cant-alias.stderr +++ b/tests/ui/mut/mut-cant-alias.stderr @@ -8,6 +8,6 @@ LL | let b2 = &mut *b; LL | b1.use_mut(); | -- first borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0499`. diff --git a/tests/ui/mut/mut-cross-borrowing.stderr b/tests/ui/mut/mut-cross-borrowing.stderr index 8a3076db9b2..4cfe56bfab6 100644 --- a/tests/ui/mut/mut-cross-borrowing.stderr +++ b/tests/ui/mut/mut-cross-borrowing.stderr @@ -18,6 +18,6 @@ help: consider mutably borrowing here LL | f(&mut x) | ++++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`. diff --git a/tests/ui/mut/mut-ref.stderr b/tests/ui/mut/mut-ref.stderr index e6d4901aafb..b91392f223a 100644 --- a/tests/ui/mut/mut-ref.stderr +++ b/tests/ui/mut/mut-ref.stderr @@ -4,5 +4,5 @@ error: the order of `mut` and `ref` is incorrect LL | let mut ref x = 10; | ^^^^^^^ help: try switching the order: `ref mut` -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/mut/mutable-class-fields-2.stderr b/tests/ui/mut/mutable-class-fields-2.stderr index c53c6ea302c..eb0c54f885b 100644 --- a/tests/ui/mut/mutable-class-fields-2.stderr +++ b/tests/ui/mut/mutable-class-fields-2.stderr @@ -9,6 +9,6 @@ help: consider changing this to be a mutable reference LL | pub fn eat(&mut self) { | ~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0594`. diff --git a/tests/ui/mut/mutable-class-fields.stderr b/tests/ui/mut/mutable-class-fields.stderr index 1d731be8a85..e57cce62ee4 100644 --- a/tests/ui/mut/mutable-class-fields.stderr +++ b/tests/ui/mut/mutable-class-fields.stderr @@ -9,6 +9,6 @@ help: consider changing this to be mutable LL | let mut nyan : Cat = cat(52, 99); | +++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0594`. diff --git a/tests/ui/mut/mutable-enum-indirect.stderr b/tests/ui/mut/mutable-enum-indirect.stderr index 9e1f4e1fe4e..0b7783b3318 100644 --- a/tests/ui/mut/mutable-enum-indirect.stderr +++ b/tests/ui/mut/mutable-enum-indirect.stderr @@ -19,6 +19,6 @@ note: required by a bound in `bar` LL | fn bar<T: Sync>(_: T) {} | ^^^^ required by this bound in `bar` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. |
