about summary refs log tree commit diff
path: root/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr')
-rw-r--r--tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr55
1 files changed, 33 insertions, 22 deletions
diff --git a/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr
index f4fb14e7992..6c6b8b51c22 100644
--- a/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr
+++ b/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr
@@ -13,8 +13,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `usize` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_usize);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:32:16
@@ -31,8 +32,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `u64` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_u64);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:36:16
@@ -49,8 +51,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `u32` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_u32);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:40:16
@@ -67,8 +70,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `u16` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_u16);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:44:16
@@ -85,8 +89,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `u8` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_u8);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:48:16
@@ -103,8 +108,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `isize` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_isize);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:52:16
@@ -121,8 +127,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `i64` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_i64);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:57:16
@@ -139,8 +146,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `i16` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_i16);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:61:16
@@ -157,8 +165,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `i8` to `i32`
    |
-LL |     foo::<i32>(42_i32);
-   |                   ~~~
+LL -     foo::<i32>(42_i8);
+LL +     foo::<i32>(42_i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:65:16
@@ -175,8 +184,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `f64` to `i32`
    |
-LL |     foo::<i32>(42i32);
-   |                  ~~~
+LL -     foo::<i32>(42.0_f64);
+LL +     foo::<i32>(42i32);
+   |
 
 error[E0308]: mismatched types
   --> $DIR/numeric-suffix-i32.rs:69:16
@@ -193,8 +203,9 @@ LL | fn foo<N>(_x: N) {}
    |    ^^^    -----
 help: change the type of the numeric literal from `f32` to `i32`
    |
-LL |     foo::<i32>(42i32);
-   |                  ~~~
+LL -     foo::<i32>(42.0_f32);
+LL +     foo::<i32>(42i32);
+   |
 
 error: aborting due to 11 previous errors