]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_rounding.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / tools / clippy / tests / ui / unused_rounding.rs
1 // run-rustfix
2 #![warn(clippy::unused_rounding)]
3
4 fn main() {
5     let _ = 1f32.ceil();
6     let _ = 1.0f64.floor();
7     let _ = 1.00f32.round();
8     let _ = 2e-54f64.floor();
9 }