about summary refs log tree commit diff
path: root/tests/ui/missing
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/missing')
-rw-r--r--tests/ui/missing/missing-block-hint.stderr5
-rw-r--r--tests/ui/missing/missing-fields-in-struct-pattern.stderr5
-rw-r--r--tests/ui/missing/missing-items/missing-const-parameter.stderr5
-rw-r--r--tests/ui/missing/missing-items/missing-type-parameter2.stderr25
4 files changed, 24 insertions, 16 deletions
diff --git a/tests/ui/missing/missing-block-hint.stderr b/tests/ui/missing/missing-block-hint.stderr
index 7a08d70d0ce..15bf59f1482 100644
--- a/tests/ui/missing/missing-block-hint.stderr
+++ b/tests/ui/missing/missing-block-hint.stderr
@@ -11,8 +11,9 @@ LL |         if (foo) => {}
    |            ^^^^^
 help: you might have meant to write a "greater than or equal to" comparison
    |
-LL |         if (foo) >= {}
-   |                  ~~
+LL -         if (foo) => {}
+LL +         if (foo) >= {}
+   |
 
 error: expected `{`, found `bar`
   --> $DIR/missing-block-hint.rs:7:13
diff --git a/tests/ui/missing/missing-fields-in-struct-pattern.stderr b/tests/ui/missing/missing-fields-in-struct-pattern.stderr
index 91a7bd3540e..1c69592985f 100644
--- a/tests/ui/missing/missing-fields-in-struct-pattern.stderr
+++ b/tests/ui/missing/missing-fields-in-struct-pattern.stderr
@@ -6,8 +6,9 @@ LL |     if let S { a, b, c, d } = S(1, 2, 3, 4) {
    |
 help: use the tuple variant pattern syntax instead
    |
-LL |     if let S(a, b, c, d) = S(1, 2, 3, 4) {
-   |             ~~~~~~~~~~~~
+LL -     if let S { a, b, c, d } = S(1, 2, 3, 4) {
+LL +     if let S(a, b, c, d) = S(1, 2, 3, 4) {
+   |
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/missing/missing-items/missing-const-parameter.stderr b/tests/ui/missing/missing-items/missing-const-parameter.stderr
index d9fea130651..c873e244815 100644
--- a/tests/ui/missing/missing-items/missing-const-parameter.stderr
+++ b/tests/ui/missing/missing-items/missing-const-parameter.stderr
@@ -52,8 +52,9 @@ LL | struct Image<const R: usize>([[u32; C]; R]);
    |
 help: a const parameter with a similar name exists
    |
-LL | struct Image<const R: usize>([[u32; R]; R]);
-   |                                     ~
+LL - struct Image<const R: usize>([[u32; C]; R]);
+LL + struct Image<const R: usize>([[u32; R]; R]);
+   |
 help: you might be missing a const parameter
    |
 LL | struct Image<const R: usize, const C: /* Type */>([[u32; C]; R]);
diff --git a/tests/ui/missing/missing-items/missing-type-parameter2.stderr b/tests/ui/missing/missing-items/missing-type-parameter2.stderr
index f33951c98bf..f6418de20b6 100644
--- a/tests/ui/missing/missing-items/missing-type-parameter2.stderr
+++ b/tests/ui/missing/missing-items/missing-type-parameter2.stderr
@@ -9,8 +9,9 @@ LL | impl X<N> {}
    |
 help: a struct with a similar name exists
    |
-LL | impl X<X> {}
-   |        ~
+LL - impl X<N> {}
+LL + impl X<X> {}
+   |
 help: you might be missing a type parameter
    |
 LL | impl<N> X<N> {}
@@ -26,8 +27,9 @@ LL | impl<T, const A: u8 = 2> X<N> {}
    |
 help: a type parameter with a similar name exists
    |
-LL | impl<T, const A: u8 = 2> X<T> {}
-   |                            ~
+LL - impl<T, const A: u8 = 2> X<N> {}
+LL + impl<T, const A: u8 = 2> X<T> {}
+   |
 help: you might be missing a type parameter
    |
 LL | impl<T, const A: u8 = 2, N> X<N> {}
@@ -44,8 +46,9 @@ LL | fn foo(_: T) where T: Send {}
    |
 help: a struct with a similar name exists
    |
-LL | fn foo(_: T) where X: Send {}
-   |                    ~
+LL - fn foo(_: T) where T: Send {}
+LL + fn foo(_: T) where X: Send {}
+   |
 help: you might be missing a type parameter
    |
 LL | fn foo<T>(_: T) where T: Send {}
@@ -62,8 +65,9 @@ LL | fn foo(_: T) where T: Send {}
    |
 help: a struct with a similar name exists
    |
-LL | fn foo(_: X) where T: Send {}
-   |           ~
+LL - fn foo(_: T) where T: Send {}
+LL + fn foo(_: X) where T: Send {}
+   |
 help: you might be missing a type parameter
    |
 LL | fn foo<T>(_: T) where T: Send {}
@@ -80,8 +84,9 @@ LL | fn bar<const N: u8>(_: A) {}
    |
 help: a struct with a similar name exists
    |
-LL | fn bar<const N: u8>(_: X) {}
-   |                        ~
+LL - fn bar<const N: u8>(_: A) {}
+LL + fn bar<const N: u8>(_: X) {}
+   |
 help: you might be missing a type parameter
    |
 LL | fn bar<const N: u8, A>(_: A) {}