]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/approx_const.rs
iterate List by value
[rust.git] / tests / ui / approx_const.rs
index eb66a633f9e1c7a5da569e5c7bf03da0f7a4f41d..fb57a0becbb25e81b751bef0e1be0ddb0b559253 100644 (file)
@@ -1,8 +1,5 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-#[warn(approx_constant)]
-#[allow(unused, shadow_unrelated, similar_names)]
+#[warn(clippy::approx_constant)]
+#[allow(unused, clippy::shadow_unrelated, clippy::similar_names)]
 fn main() {
     let my_e = 2.7182;
     let almost_e = 2.718;
@@ -42,12 +39,18 @@ fn main() {
     let my_ln_2 = 0.6931471805599453;
     let no_ln_2 = 0.693;
 
-    let my_log10_e = 0.43429448190325182;
+    let my_log10_e = 0.4342944819032518;
     let no_log10_e = 0.434;
 
     let my_log2_e = 1.4426950408889634;
     let no_log2_e = 1.442;
 
+    let log2_10 = 3.321928094887362;
+    let no_log2_10 = 3.321;
+
+    let log10_2 = 0.301029995663981;
+    let no_log10_2 = 0.301;
+
     let my_pi = 3.1415;
     let almost_pi = 3.14;
     let no_pi = 3.15;