From 01be53f92939df92ac7cb48d8b2a9713744e7b6e Mon Sep 17 00:00:00 2001 From: Victor Korkin Date: Mon, 28 May 2018 23:49:38 +0700 Subject: [PATCH] Little fix for test --- tests/ui/types_fn_to_int.rs | 1 - tests/ui/types_fn_to_int.stderr | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/ui/types_fn_to_int.rs b/tests/ui/types_fn_to_int.rs index 250307e54..fadedcef9 100644 --- a/tests/ui/types_fn_to_int.rs +++ b/tests/ui/types_fn_to_int.rs @@ -1,4 +1,3 @@ -#![feature(tool_attributes)] enum Foo { A(usize), B diff --git a/tests/ui/types_fn_to_int.stderr b/tests/ui/types_fn_to_int.stderr index dffcf0083..519b77633 100644 --- a/tests/ui/types_fn_to_int.stderr +++ b/tests/ui/types_fn_to_int.stderr @@ -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`