about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authordirreke <mingyang_ge@163.com>2023-08-15 00:57:18 +0800
committerdirreke <mingyang_ge@163.com>2023-08-15 00:57:18 +0800
commite676afbafeb44cf931b540940e02f4eebb042cd1 (patch)
tree5e121ed22395a54be5eca8905bd9820939ca1cdc /tests
parent9743e846b9d44a6410e22ce09583b2548c21d43d (diff)
downloadrust-e676afbafeb44cf931b540940e02f4eebb042cd1.tar.gz
rust-e676afbafeb44cf931b540940e02f4eebb042cd1.zip
fix the error check
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/suggestions/issue-71394-no-from-impl.stderr2
-rw-r--r--tests/ui/target-feature/gate.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/suggestions/issue-71394-no-from-impl.stderr b/tests/ui/suggestions/issue-71394-no-from-impl.stderr
index 004f1c1622b..80be252a0a5 100644
--- a/tests/ui/suggestions/issue-71394-no-from-impl.stderr
+++ b/tests/ui/suggestions/issue-71394-no-from-impl.stderr
@@ -13,7 +13,7 @@ LL |     let _: &[i8] = data.into();
              <[T; 4] as From<(T, T, T, T)>>
              <[T; 5] as From<(T, T, T, T, T)>>
              <[T; 6] as From<(T, T, T, T, T, T)>>
-           and 7 others
+           and 6 others
    = note: required for `&[u8]` to implement `Into<&[i8]>`
 
 error: aborting due to previous error
diff --git a/tests/ui/target-feature/gate.stderr b/tests/ui/target-feature/gate.stderr
index 896212e42fc..f56efb3bb83 100644
--- a/tests/ui/target-feature/gate.stderr
+++ b/tests/ui/target-feature/gate.stderr
@@ -1,5 +1,5 @@
 error[E0658]: the target feature `avx512bw` is currently unstable
-  --> $DIR/gate.rs:21:18
+  --> $DIR/gate.rs:22:18
    |
 LL | #[target_feature(enable = "avx512bw")]
    |                  ^^^^^^^^^^^^^^^^^^^