about summary refs log tree commit diff
path: root/tests/ui/numeric/const-scope.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/numeric/const-scope.stderr')
-rw-r--r--tests/ui/numeric/const-scope.stderr15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/ui/numeric/const-scope.stderr b/tests/ui/numeric/const-scope.stderr
index 4e4bcdf234d..2c8d4da9d21 100644
--- a/tests/ui/numeric/const-scope.stderr
+++ b/tests/ui/numeric/const-scope.stderr
@@ -6,8 +6,9 @@ LL | const C: i32 = 1i8;
    |
 help: change the type of the numeric literal from `i8` to `i32`
    |
-LL | const C: i32 = 1i32;
-   |                 ~~~
+LL - const C: i32 = 1i8;
+LL + const C: i32 = 1i32;
+   |
 
 error[E0308]: mismatched types
   --> $DIR/const-scope.rs:2:15
@@ -25,8 +26,9 @@ LL |     let c: i32 = 1i8;
    |
 help: change the type of the numeric literal from `i8` to `i32`
    |
-LL |     let c: i32 = 1i32;
-   |                   ~~~
+LL -     let c: i32 = 1i8;
+LL +     let c: i32 = 1i32;
+   |
 
 error[E0308]: mismatched types
   --> $DIR/const-scope.rs:6:17
@@ -46,8 +48,9 @@ LL |     let c: i32 = 1i8;
    |
 help: change the type of the numeric literal from `i8` to `i32`
    |
-LL |     let c: i32 = 1i32;
-   |                   ~~~
+LL -     let c: i32 = 1i8;
+LL +     let c: i32 = 1i32;
+   |
 
 error[E0308]: mismatched types
   --> $DIR/const-scope.rs:11:17