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