]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_rounding.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / 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 }