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