We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68114c4 commit a05f305Copy full SHA for a05f305
tests/ui/proc_macro.rs
@@ -0,0 +1,7 @@
1
+#![crate_type = "lib"]
2
+
3
+#[allow(dead_code)]
4
+fn f() {
5
+ let _x = 3.14;
6
+}
7
tests/ui/proc_macro.stderr
@@ -0,0 +1,10 @@
+error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
+ --> $DIR/proc_macro.rs:5:14
+ |
+LL | let _x = 3.14;
+ | ^^^^
+ = note: #[deny(clippy::approx_constant)] on by default
8
9
+error: aborting due to previous error
10
0 commit comments