mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Little fix for test
This commit is contained in:
parent
cf8f379657
commit
01be53f929
2 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
|||
#![feature(tool_attributes)]
|
||||
enum Foo {
|
||||
A(usize),
|
||||
B
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error: casting Fn not to usize may truncate the value
|
||||
--> $DIR/types_fn_to_int.rs:9:13
|
||||
--> $DIR/types_fn_to_int.rs:8:13
|
||||
|
|
||||
9 | let y = x as i32;
|
||||
8 | let y = x as i32;
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: `-D unnecessary-cast` implied by `-D warnings`
|
||||
|
|
Loading…
Reference in a new issue