]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / numeric / numeric-suffix / numeric-suffix-usize.stderr
index 3713d6c973a0c7b74db8a3299a274bc5f09e9665..4889abee69c2ac326ddc4f65f543be1eb5e52b06 100644 (file)
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:7:18
+  --> $DIR/numeric-suffix-usize.rs:29:18
    |
 LL |     foo::<usize>(42_u64);
-   |                  ^^^^^^ expected `usize`, found `u64`
+   |     ------------ ^^^^^^ expected `usize`, found `u64`
+   |     |
+   |     arguments to this function are incorrect
    |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
+   |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `u64` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:10:18
+  --> $DIR/numeric-suffix-usize.rs:33:18
    |
 LL |     foo::<usize>(42_u32);
-   |                  ^^^^^^ expected `usize`, found `u32`
+   |     ------------ ^^^^^^ expected `usize`, found `u32`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `u32` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:13:18
+  --> $DIR/numeric-suffix-usize.rs:37:18
    |
 LL |     foo::<usize>(42_u16);
-   |                  ^^^^^^ expected `usize`, found `u16`
+   |     ------------ ^^^^^^ expected `usize`, found `u16`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `u16` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:16:18
+  --> $DIR/numeric-suffix-usize.rs:41:18
    |
 LL |     foo::<usize>(42_u8);
-   |                  ^^^^^ expected `usize`, found `u8`
+   |     ------------ ^^^^^ expected `usize`, found `u8`
+   |     |
+   |     arguments to this function are incorrect
    |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
+   |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `u8` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:19:18
+  --> $DIR/numeric-suffix-usize.rs:45:18
    |
 LL |     foo::<usize>(42_isize);
-   |                  ^^^^^^^^ expected `usize`, found `isize`
+   |     ------------ ^^^^^^^^ expected `usize`, found `isize`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `isize` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:22:18
+  --> $DIR/numeric-suffix-usize.rs:49:18
    |
 LL |     foo::<usize>(42_i64);
-   |                  ^^^^^^ expected `usize`, found `i64`
+   |     ------------ ^^^^^^ expected `usize`, found `i64`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `i64` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:25:18
+  --> $DIR/numeric-suffix-usize.rs:53:18
    |
 LL |     foo::<usize>(42_i32);
-   |                  ^^^^^^ expected `usize`, found `i32`
+   |     ------------ ^^^^^^ expected `usize`, found `i32`
+   |     |
+   |     arguments to this function are incorrect
    |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
+   |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `i32` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:28:18
+  --> $DIR/numeric-suffix-usize.rs:57:18
    |
 LL |     foo::<usize>(42_i16);
-   |                  ^^^^^^ expected `usize`, found `i16`
+   |     ------------ ^^^^^^ expected `usize`, found `i16`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `i16` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:31:18
+  --> $DIR/numeric-suffix-usize.rs:61:18
    |
 LL |     foo::<usize>(42_i8);
-   |                  ^^^^^ expected `usize`, found `i8`
+   |     ------------ ^^^^^ expected `usize`, found `i8`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `i8` to `usize`
    |
 LL |     foo::<usize>(42_usize);
    |                     ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:34:18
+  --> $DIR/numeric-suffix-usize.rs:65:18
    |
 LL |     foo::<usize>(42.0_f64);
-   |                  ^^^^^^^^ expected `usize`, found `f64`
+   |     ------------ ^^^^^^^^ expected `usize`, found `f64`
+   |     |
+   |     arguments to this function are incorrect
    |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
+   |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `f64` to `usize`
    |
 LL |     foo::<usize>(42usize);
    |                    ~~~~~
 
 error[E0308]: mismatched types
-  --> $DIR/numeric-suffix-usize.rs:37:18
+  --> $DIR/numeric-suffix-usize.rs:69:18
    |
 LL |     foo::<usize>(42.0_f32);
-   |                  ^^^^^^^^ expected `usize`, found `f32`
+   |     ------------ ^^^^^^^^ expected `usize`, found `f32`
+   |     |
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/numeric-suffix-usize.rs:3:4
    |
+LL | fn foo<N>(_x: N) {}
+   |    ^^^    -----
 help: change the type of the numeric literal from `f32` to `usize`
    |
 LL |     foo::<usize>(42usize);