Little fix for test

This commit is contained in:
Victor Korkin 2018-05-28 23:49:38 +07:00
parent cf8f379657
commit 01be53f929
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,3 @@
#![feature(tool_attributes)]
enum Foo {
A(usize),
B

View file

@ -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`