]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/fn_to_numeric_cast.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / fn_to_numeric_cast.rs
index 9bd0ad7687fad5640d532fb021ed3446b2d0e409..a456c085c876108b618f77007aeb1d55f230abba 100644 (file)
@@ -1,19 +1,10 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-
-// only-64bit
-#![feature(tool_lints)]
+// ignore-32bit
 
 #![warn(clippy::fn_to_numeric_cast, clippy::fn_to_numeric_cast_with_truncation)]
 
-fn foo() -> String { String::new() }
+fn foo() -> String {
+    String::new()
+}
 
 fn test_function_to_numeric_cast() {
     let _ = foo as i8;