]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/types.rs
iterate List by value
[rust.git] / tests / ui / types.rs
index 45846d6eef82576fd452be50fbc957fcf935efaf..b16e9e538b106a4c4fcb0a802ada71239501a6cb 100644 (file)
@@ -1,3 +1,8 @@
+// run-rustfix
+
+#![allow(dead_code, unused_variables)]
+#![warn(clippy::cast_lossless)]
+
 // should not warn on lossy casting in constant types
 // because not supported yet
 const C: i32 = 42;