@@ -8,9 +8,8 @@ LL |     let _ = foo as i8;
88   = help: to override `-D warnings` add `#[allow(clippy::fn_to_numeric_cast_any)]`
99help: did you mean to invoke the function?
1010   |
11- LL -     let _ = foo as i8;
12- LL +     let _ = foo() as i8;
13-    |
11+ LL |     let _ = foo() as i8;
12+    |                ++
1413
1514error: casting function pointer `foo` to `i16`
1615  --> tests/ui/fn_to_numeric_cast_any.rs:26:13
@@ -20,9 +19,8 @@ LL |     let _ = foo as i16;
2019   |
2120help: did you mean to invoke the function?
2221   |
23- LL -     let _ = foo as i16;
24- LL +     let _ = foo() as i16;
25-    |
22+ LL |     let _ = foo() as i16;
23+    |                ++
2624
2725error: casting function pointer `foo` to `i32`
2826  --> tests/ui/fn_to_numeric_cast_any.rs:28:13
@@ -32,9 +30,8 @@ LL |     let _ = foo as i32;
3230   |
3331help: did you mean to invoke the function?
3432   |
35- LL -     let _ = foo as i32;
36- LL +     let _ = foo() as i32;
37-    |
33+ LL |     let _ = foo() as i32;
34+    |                ++
3835
3936error: casting function pointer `foo` to `i64`
4037  --> tests/ui/fn_to_numeric_cast_any.rs:30:13
@@ -44,9 +41,8 @@ LL |     let _ = foo as i64;
4441   |
4542help: did you mean to invoke the function?
4643   |
47- LL -     let _ = foo as i64;
48- LL +     let _ = foo() as i64;
49-    |
44+ LL |     let _ = foo() as i64;
45+    |                ++
5046
5147error: casting function pointer `foo` to `i128`
5248  --> tests/ui/fn_to_numeric_cast_any.rs:32:13
@@ -56,9 +52,8 @@ LL |     let _ = foo as i128;
5652   |
5753help: did you mean to invoke the function?
5854   |
59- LL -     let _ = foo as i128;
60- LL +     let _ = foo() as i128;
61-    |
55+ LL |     let _ = foo() as i128;
56+    |                ++
6257
6358error: casting function pointer `foo` to `isize`
6459  --> tests/ui/fn_to_numeric_cast_any.rs:34:13
@@ -68,9 +63,8 @@ LL |     let _ = foo as isize;
6863   |
6964help: did you mean to invoke the function?
7065   |
71- LL -     let _ = foo as isize;
72- LL +     let _ = foo() as isize;
73-    |
66+ LL |     let _ = foo() as isize;
67+    |                ++
7468
7569error: casting function pointer `foo` to `u8`
7670  --> tests/ui/fn_to_numeric_cast_any.rs:37:13
@@ -80,9 +74,8 @@ LL |     let _ = foo as u8;
8074   |
8175help: did you mean to invoke the function?
8276   |
83- LL -     let _ = foo as u8;
84- LL +     let _ = foo() as u8;
85-    |
77+ LL |     let _ = foo() as u8;
78+    |                ++
8679
8780error: casting function pointer `foo` to `u16`
8881  --> tests/ui/fn_to_numeric_cast_any.rs:39:13
@@ -92,9 +85,8 @@ LL |     let _ = foo as u16;
9285   |
9386help: did you mean to invoke the function?
9487   |
95- LL -     let _ = foo as u16;
96- LL +     let _ = foo() as u16;
97-    |
88+ LL |     let _ = foo() as u16;
89+    |                ++
9890
9991error: casting function pointer `foo` to `u32`
10092  --> tests/ui/fn_to_numeric_cast_any.rs:41:13
@@ -104,9 +96,8 @@ LL |     let _ = foo as u32;
10496   |
10597help: did you mean to invoke the function?
10698   |
107- LL -     let _ = foo as u32;
108- LL +     let _ = foo() as u32;
109-    |
99+ LL |     let _ = foo() as u32;
100+    |                ++
110101
111102error: casting function pointer `foo` to `u64`
112103  --> tests/ui/fn_to_numeric_cast_any.rs:43:13
@@ -116,9 +107,8 @@ LL |     let _ = foo as u64;
116107   |
117108help: did you mean to invoke the function?
118109   |
119- LL -     let _ = foo as u64;
120- LL +     let _ = foo() as u64;
121-    |
110+ LL |     let _ = foo() as u64;
111+    |                ++
122112
123113error: casting function pointer `foo` to `u128`
124114  --> tests/ui/fn_to_numeric_cast_any.rs:45:13
@@ -128,9 +118,8 @@ LL |     let _ = foo as u128;
128118   |
129119help: did you mean to invoke the function?
130120   |
131- LL -     let _ = foo as u128;
132- LL +     let _ = foo() as u128;
133-    |
121+ LL |     let _ = foo() as u128;
122+    |                ++
134123
135124error: casting function pointer `foo` to `usize`
136125  --> tests/ui/fn_to_numeric_cast_any.rs:47:13
@@ -140,9 +129,8 @@ LL |     let _ = foo as usize;
140129   |
141130help: did you mean to invoke the function?
142131   |
143- LL -     let _ = foo as usize;
144- LL +     let _ = foo() as usize;
145-    |
132+ LL |     let _ = foo() as usize;
133+    |                ++
146134
147135error: casting function pointer `Struct::static_method` to `usize`
148136  --> tests/ui/fn_to_numeric_cast_any.rs:52:13
@@ -152,9 +140,8 @@ LL |     let _ = Struct::static_method as usize;
152140   |
153141help: did you mean to invoke the function?
154142   |
155- LL -     let _ = Struct::static_method as usize;
156- LL +     let _ = Struct::static_method() as usize;
157-    |
143+ LL |     let _ = Struct::static_method() as usize;
144+    |                                  ++
158145
159146error: casting function pointer `f` to `usize`
160147  --> tests/ui/fn_to_numeric_cast_any.rs:57:5
@@ -164,9 +151,8 @@ LL |     f as usize
164151   |
165152help: did you mean to invoke the function?
166153   |
167- LL -     f as usize
168- LL +     f() as usize
169-    |
154+ LL |     f() as usize
155+    |      ++
170156
171157error: casting function pointer `T::static_method` to `usize`
172158  --> tests/ui/fn_to_numeric_cast_any.rs:62:5
@@ -176,9 +162,8 @@ LL |     T::static_method as usize
176162   |
177163help: did you mean to invoke the function?
178164   |
179- LL -     T::static_method as usize
180- LL +     T::static_method() as usize
181-    |
165+ LL |     T::static_method() as usize
166+    |                     ++
182167
183168error: casting function pointer `(clos as fn(u32) -> u32)` to `usize`
184169  --> tests/ui/fn_to_numeric_cast_any.rs:69:13
@@ -188,9 +173,8 @@ LL |     let _ = (clos as fn(u32) -> u32) as usize;
188173   |
189174help: did you mean to invoke the function?
190175   |
191- LL -     let _ = (clos as fn(u32) -> u32) as usize;
192- LL +     let _ = (clos as fn(u32) -> u32)() as usize;
193-    |
176+ LL |     let _ = (clos as fn(u32) -> u32)() as usize;
177+    |                                     ++
194178
195179error: casting function pointer `foo` to `*const ()`
196180  --> tests/ui/fn_to_numeric_cast_any.rs:74:13
@@ -200,9 +184,8 @@ LL |     let _ = foo as *const ();
200184   |
201185help: did you mean to invoke the function?
202186   |
203- LL -     let _ = foo as *const ();
204- LL +     let _ = foo() as *const ();
205-    |
187+ LL |     let _ = foo() as *const ();
188+    |                ++
206189
207190error: aborting due to 17 previous errors
208191
0 commit comments