2 Checks for floating point literals that approximate
3 constants which are defined in
4 [`std::f32::consts`](https://doc.rust-lang.org/stable/std/f32/consts/#constants)
6 [`std::f64::consts`](https://doc.rust-lang.org/stable/std/f64/consts/#constants),
7 respectively, suggesting to use the predefined constant.
10 Usually, the definition in the standard library is more
11 precise than what people come up with. If you find that your definition is
12 actually more precise, please [file a Rust
13 issue](https://github.com/rust-lang/rust/issues).
22 let x = std::f32::consts::PI;
23 let y = std::f64::consts::FRAC_1_PI;