1 error[E0308]: mismatched types
2 --> $DIR/numeric-suffix-usize.rs:29:18
4 LL | foo::<usize>(42_u64);
5 | ------------ ^^^^^^ expected `usize`, found `u64`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/numeric-suffix-usize.rs:3:4
12 LL | fn foo<N>(_x: N) {}
14 help: change the type of the numeric literal from `u64` to `usize`
16 LL | foo::<usize>(42_usize);
19 error[E0308]: mismatched types
20 --> $DIR/numeric-suffix-usize.rs:33:18
22 LL | foo::<usize>(42_u32);
23 | ------------ ^^^^^^ expected `usize`, found `u32`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/numeric-suffix-usize.rs:3:4
30 LL | fn foo<N>(_x: N) {}
32 help: change the type of the numeric literal from `u32` to `usize`
34 LL | foo::<usize>(42_usize);
37 error[E0308]: mismatched types
38 --> $DIR/numeric-suffix-usize.rs:37:18
40 LL | foo::<usize>(42_u16);
41 | ------------ ^^^^^^ expected `usize`, found `u16`
43 | arguments to this function are incorrect
45 note: function defined here
46 --> $DIR/numeric-suffix-usize.rs:3:4
48 LL | fn foo<N>(_x: N) {}
50 help: change the type of the numeric literal from `u16` to `usize`
52 LL | foo::<usize>(42_usize);
55 error[E0308]: mismatched types
56 --> $DIR/numeric-suffix-usize.rs:41:18
58 LL | foo::<usize>(42_u8);
59 | ------------ ^^^^^ expected `usize`, found `u8`
61 | arguments to this function are incorrect
63 note: function defined here
64 --> $DIR/numeric-suffix-usize.rs:3:4
66 LL | fn foo<N>(_x: N) {}
68 help: change the type of the numeric literal from `u8` to `usize`
70 LL | foo::<usize>(42_usize);
73 error[E0308]: mismatched types
74 --> $DIR/numeric-suffix-usize.rs:45:18
76 LL | foo::<usize>(42_isize);
77 | ------------ ^^^^^^^^ expected `usize`, found `isize`
79 | arguments to this function are incorrect
81 note: function defined here
82 --> $DIR/numeric-suffix-usize.rs:3:4
84 LL | fn foo<N>(_x: N) {}
86 help: change the type of the numeric literal from `isize` to `usize`
88 LL | foo::<usize>(42_usize);
91 error[E0308]: mismatched types
92 --> $DIR/numeric-suffix-usize.rs:49:18
94 LL | foo::<usize>(42_i64);
95 | ------------ ^^^^^^ expected `usize`, found `i64`
97 | arguments to this function are incorrect
99 note: function defined here
100 --> $DIR/numeric-suffix-usize.rs:3:4
102 LL | fn foo<N>(_x: N) {}
104 help: change the type of the numeric literal from `i64` to `usize`
106 LL | foo::<usize>(42_usize);
109 error[E0308]: mismatched types
110 --> $DIR/numeric-suffix-usize.rs:53:18
112 LL | foo::<usize>(42_i32);
113 | ------------ ^^^^^^ expected `usize`, found `i32`
115 | arguments to this function are incorrect
117 note: function defined here
118 --> $DIR/numeric-suffix-usize.rs:3:4
120 LL | fn foo<N>(_x: N) {}
122 help: change the type of the numeric literal from `i32` to `usize`
124 LL | foo::<usize>(42_usize);
127 error[E0308]: mismatched types
128 --> $DIR/numeric-suffix-usize.rs:57:18
130 LL | foo::<usize>(42_i16);
131 | ------------ ^^^^^^ expected `usize`, found `i16`
133 | arguments to this function are incorrect
135 note: function defined here
136 --> $DIR/numeric-suffix-usize.rs:3:4
138 LL | fn foo<N>(_x: N) {}
140 help: change the type of the numeric literal from `i16` to `usize`
142 LL | foo::<usize>(42_usize);
145 error[E0308]: mismatched types
146 --> $DIR/numeric-suffix-usize.rs:61:18
148 LL | foo::<usize>(42_i8);
149 | ------------ ^^^^^ expected `usize`, found `i8`
151 | arguments to this function are incorrect
153 note: function defined here
154 --> $DIR/numeric-suffix-usize.rs:3:4
156 LL | fn foo<N>(_x: N) {}
158 help: change the type of the numeric literal from `i8` to `usize`
160 LL | foo::<usize>(42_usize);
163 error[E0308]: mismatched types
164 --> $DIR/numeric-suffix-usize.rs:65:18
166 LL | foo::<usize>(42.0_f64);
167 | ------------ ^^^^^^^^ expected `usize`, found `f64`
169 | arguments to this function are incorrect
171 note: function defined here
172 --> $DIR/numeric-suffix-usize.rs:3:4
174 LL | fn foo<N>(_x: N) {}
176 help: change the type of the numeric literal from `f64` to `usize`
178 LL | foo::<usize>(42usize);
181 error[E0308]: mismatched types
182 --> $DIR/numeric-suffix-usize.rs:69:18
184 LL | foo::<usize>(42.0_f32);
185 | ------------ ^^^^^^^^ expected `usize`, found `f32`
187 | arguments to this function are incorrect
189 note: function defined here
190 --> $DIR/numeric-suffix-usize.rs:3:4
192 LL | fn foo<N>(_x: N) {}
194 help: change the type of the numeric literal from `f32` to `usize`
196 LL | foo::<usize>(42usize);
199 error: aborting due to 11 previous errors
201 For more information about this error, try `rustc --explain E0308`.