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/unsized-locals | |
| 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/unsized-locals')
| -rw-r--r-- | tests/ui/unsized-locals/by-value-trait-object-safety.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/issue-30276-feature-flagged.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/issue-30276.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/issue-50940-with-feature.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/issue-50940.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/issue-67981.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/rust-call.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/unsized-exprs2.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/unsized-locals/unsized-exprs3.stderr | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/unsized-locals/by-value-trait-object-safety.stderr b/tests/ui/unsized-locals/by-value-trait-object-safety.stderr index 4f13ec7ac08..6a93464febb 100644 --- a/tests/ui/unsized-locals/by-value-trait-object-safety.stderr +++ b/tests/ui/unsized-locals/by-value-trait-object-safety.stderr @@ -16,5 +16,5 @@ LL | Self: Sized; LL | x.foo(); | ^^^ -error: aborting due to previous error; 1 warning emitted +error: aborting due to 1 previous error; 1 warning emitted diff --git a/tests/ui/unsized-locals/issue-30276-feature-flagged.stderr b/tests/ui/unsized-locals/issue-30276-feature-flagged.stderr index b6002cf895f..ee8e4f3eee2 100644 --- a/tests/ui/unsized-locals/issue-30276-feature-flagged.stderr +++ b/tests/ui/unsized-locals/issue-30276-feature-flagged.stderr @@ -17,6 +17,6 @@ LL | let _x: fn(_) -> Test = Test; = note: all function arguments must have a statically known size = help: unsized fn params are gated as an unstable feature -error: aborting due to previous error; 1 warning emitted +error: aborting due to 1 previous error; 1 warning emitted For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/unsized-locals/issue-30276.stderr b/tests/ui/unsized-locals/issue-30276.stderr index 8cccbd792da..15f70b18b32 100644 --- a/tests/ui/unsized-locals/issue-30276.stderr +++ b/tests/ui/unsized-locals/issue-30276.stderr @@ -8,6 +8,6 @@ LL | let _x: fn(_) -> Test = Test; = note: all function arguments must have a statically known size = help: unsized fn params are gated as an unstable feature -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/unsized-locals/issue-50940-with-feature.stderr b/tests/ui/unsized-locals/issue-50940-with-feature.stderr index 8bbe317ec74..b39eb2e70bb 100644 --- a/tests/ui/unsized-locals/issue-50940-with-feature.stderr +++ b/tests/ui/unsized-locals/issue-50940-with-feature.stderr @@ -21,6 +21,6 @@ LL | struct A<X: ?Sized>(X); | ^ = note: the return type of a function must have a statically known size -error: aborting due to previous error; 1 warning emitted +error: aborting due to 1 previous error; 1 warning emitted For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/unsized-locals/issue-50940.stderr b/tests/ui/unsized-locals/issue-50940.stderr index 8f09b460e00..160e14794d5 100644 --- a/tests/ui/unsized-locals/issue-50940.stderr +++ b/tests/ui/unsized-locals/issue-50940.stderr @@ -8,6 +8,6 @@ LL | A as fn(str) -> A<str>; = note: all function arguments must have a statically known size = help: unsized fn params are gated as an unstable feature -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/unsized-locals/issue-67981.stderr b/tests/ui/unsized-locals/issue-67981.stderr index 13fdc037ac5..e1fa41de2a8 100644 --- a/tests/ui/unsized-locals/issue-67981.stderr +++ b/tests/ui/unsized-locals/issue-67981.stderr @@ -7,6 +7,6 @@ LL | let f: fn([u8]) = |_| {}; = help: the trait `Sized` is not implemented for `[u8]` = note: all function arguments must have a statically known size -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/unsized-locals/rust-call.stderr b/tests/ui/unsized-locals/rust-call.stderr index fff7ef75b33..9eb0f3dabcc 100644 --- a/tests/ui/unsized-locals/rust-call.stderr +++ b/tests/ui/unsized-locals/rust-call.stderr @@ -8,6 +8,6 @@ LL | f(*slice); = note: required because it appears within the type `([u8],)` = note: argument required to be sized due to `extern "rust-call"` ABI -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/unsized-locals/unsized-exprs2.stderr b/tests/ui/unsized-locals/unsized-exprs2.stderr index 88269f237af..47b6d72acc7 100644 --- a/tests/ui/unsized-locals/unsized-exprs2.stderr +++ b/tests/ui/unsized-locals/unsized-exprs2.stderr @@ -7,6 +7,6 @@ LL | udrop::<[u8]>(foo()[..]); | cannot move out of here | move occurs because value has type `[u8]`, which does not implement the `Copy` trait -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0508`. diff --git a/tests/ui/unsized-locals/unsized-exprs3.stderr b/tests/ui/unsized-locals/unsized-exprs3.stderr index 57d9978225a..9dfedfd8ada 100644 --- a/tests/ui/unsized-locals/unsized-exprs3.stderr +++ b/tests/ui/unsized-locals/unsized-exprs3.stderr @@ -8,6 +8,6 @@ LL | udrop as fn([u8]); = note: all function arguments must have a statically known size = help: unsized fn params are gated as an unstable feature -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. |
