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