]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.stderr
Implementation for 65853
[rust.git] / src / test / ui / numeric / numeric-suffix / numeric-suffix-i64.stderr
1 error[E0308]: mismatched types
2   --> $DIR/numeric-suffix-i64.rs:28:16
3    |
4 LL |     foo::<i64>(42_usize);
5    |     ---------- ^^^^^^^^ expected `i64`, found `usize`
6    |     |
7    |     arguments to this function are incorrect
8    |
9 note: function defined here
10   --> $DIR/numeric-suffix-i64.rs:3:4
11    |
12 LL | fn foo<N>(_x: N) {}
13    |    ^^^    -----
14 help: change the type of the numeric literal from `usize` to `i64`
15    |
16 LL |     foo::<i64>(42_i64);
17    |                   ~~~
18
19 error[E0308]: mismatched types
20   --> $DIR/numeric-suffix-i64.rs:32:16
21    |
22 LL |     foo::<i64>(42_u64);
23    |     ---------- ^^^^^^ expected `i64`, found `u64`
24    |     |
25    |     arguments to this function are incorrect
26    |
27 note: function defined here
28   --> $DIR/numeric-suffix-i64.rs:3:4
29    |
30 LL | fn foo<N>(_x: N) {}
31    |    ^^^    -----
32 help: change the type of the numeric literal from `u64` to `i64`
33    |
34 LL |     foo::<i64>(42_i64);
35    |                   ~~~
36
37 error[E0308]: mismatched types
38   --> $DIR/numeric-suffix-i64.rs:36:16
39    |
40 LL |     foo::<i64>(42_u32);
41    |     ---------- ^^^^^^ expected `i64`, found `u32`
42    |     |
43    |     arguments to this function are incorrect
44    |
45 note: function defined here
46   --> $DIR/numeric-suffix-i64.rs:3:4
47    |
48 LL | fn foo<N>(_x: N) {}
49    |    ^^^    -----
50 help: change the type of the numeric literal from `u32` to `i64`
51    |
52 LL |     foo::<i64>(42_i64);
53    |                   ~~~
54
55 error[E0308]: mismatched types
56   --> $DIR/numeric-suffix-i64.rs:40:16
57    |
58 LL |     foo::<i64>(42_u16);
59    |     ---------- ^^^^^^ expected `i64`, found `u16`
60    |     |
61    |     arguments to this function are incorrect
62    |
63 note: function defined here
64   --> $DIR/numeric-suffix-i64.rs:3:4
65    |
66 LL | fn foo<N>(_x: N) {}
67    |    ^^^    -----
68 help: change the type of the numeric literal from `u16` to `i64`
69    |
70 LL |     foo::<i64>(42_i64);
71    |                   ~~~
72
73 error[E0308]: mismatched types
74   --> $DIR/numeric-suffix-i64.rs:44:16
75    |
76 LL |     foo::<i64>(42_u8);
77    |     ---------- ^^^^^ expected `i64`, found `u8`
78    |     |
79    |     arguments to this function are incorrect
80    |
81 note: function defined here
82   --> $DIR/numeric-suffix-i64.rs:3:4
83    |
84 LL | fn foo<N>(_x: N) {}
85    |    ^^^    -----
86 help: change the type of the numeric literal from `u8` to `i64`
87    |
88 LL |     foo::<i64>(42_i64);
89    |                   ~~~
90
91 error[E0308]: mismatched types
92   --> $DIR/numeric-suffix-i64.rs:48:16
93    |
94 LL |     foo::<i64>(42_isize);
95    |     ---------- ^^^^^^^^ expected `i64`, found `isize`
96    |     |
97    |     arguments to this function are incorrect
98    |
99 note: function defined here
100   --> $DIR/numeric-suffix-i64.rs:3:4
101    |
102 LL | fn foo<N>(_x: N) {}
103    |    ^^^    -----
104 help: change the type of the numeric literal from `isize` to `i64`
105    |
106 LL |     foo::<i64>(42_i64);
107    |                   ~~~
108
109 error[E0308]: mismatched types
110   --> $DIR/numeric-suffix-i64.rs:53:16
111    |
112 LL |     foo::<i64>(42_i32);
113    |     ---------- ^^^^^^ expected `i64`, found `i32`
114    |     |
115    |     arguments to this function are incorrect
116    |
117 note: function defined here
118   --> $DIR/numeric-suffix-i64.rs:3:4
119    |
120 LL | fn foo<N>(_x: N) {}
121    |    ^^^    -----
122 help: change the type of the numeric literal from `i32` to `i64`
123    |
124 LL |     foo::<i64>(42_i64);
125    |                   ~~~
126
127 error[E0308]: mismatched types
128   --> $DIR/numeric-suffix-i64.rs:57:16
129    |
130 LL |     foo::<i64>(42_i16);
131    |     ---------- ^^^^^^ expected `i64`, found `i16`
132    |     |
133    |     arguments to this function are incorrect
134    |
135 note: function defined here
136   --> $DIR/numeric-suffix-i64.rs:3:4
137    |
138 LL | fn foo<N>(_x: N) {}
139    |    ^^^    -----
140 help: change the type of the numeric literal from `i16` to `i64`
141    |
142 LL |     foo::<i64>(42_i64);
143    |                   ~~~
144
145 error[E0308]: mismatched types
146   --> $DIR/numeric-suffix-i64.rs:61:16
147    |
148 LL |     foo::<i64>(42_i8);
149    |     ---------- ^^^^^ expected `i64`, found `i8`
150    |     |
151    |     arguments to this function are incorrect
152    |
153 note: function defined here
154   --> $DIR/numeric-suffix-i64.rs:3:4
155    |
156 LL | fn foo<N>(_x: N) {}
157    |    ^^^    -----
158 help: change the type of the numeric literal from `i8` to `i64`
159    |
160 LL |     foo::<i64>(42_i64);
161    |                   ~~~
162
163 error[E0308]: mismatched types
164   --> $DIR/numeric-suffix-i64.rs:65:16
165    |
166 LL |     foo::<i64>(42.0_f64);
167    |     ---------- ^^^^^^^^ expected `i64`, found `f64`
168    |     |
169    |     arguments to this function are incorrect
170    |
171 note: function defined here
172   --> $DIR/numeric-suffix-i64.rs:3:4
173    |
174 LL | fn foo<N>(_x: N) {}
175    |    ^^^    -----
176 help: change the type of the numeric literal from `f64` to `i64`
177    |
178 LL |     foo::<i64>(42i64);
179    |                  ~~~
180
181 error[E0308]: mismatched types
182   --> $DIR/numeric-suffix-i64.rs:69:16
183    |
184 LL |     foo::<i64>(42.0_f32);
185    |     ---------- ^^^^^^^^ expected `i64`, found `f32`
186    |     |
187    |     arguments to this function are incorrect
188    |
189 note: function defined here
190   --> $DIR/numeric-suffix-i64.rs:3:4
191    |
192 LL | fn foo<N>(_x: N) {}
193    |    ^^^    -----
194 help: change the type of the numeric literal from `f32` to `i64`
195    |
196 LL |     foo::<i64>(42i64);
197    |                  ~~~
198
199 error: aborting due to 11 previous errors
200
201 For more information about this error, try `rustc --explain E0308`.