]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_rounding.stderr
Fix ICE in `unused_rounding`
[rust.git] / tests / ui / unused_rounding.stderr
1 error: used the `ceil` method with a whole number float
2   --> $DIR/unused_rounding.rs:5:13
3    |
4 LL |     let _ = 1f32.ceil();
5    |             ^^^^^^^^^^^ help: remove the `ceil` method call: `1f32`
6    |
7    = note: `-D clippy::unused-rounding` implied by `-D warnings`
8
9 error: used the `floor` method with a whole number float
10   --> $DIR/unused_rounding.rs:6:13
11    |
12 LL |     let _ = 1.0f64.floor();
13    |             ^^^^^^^^^^^^^^ help: remove the `floor` method call: `1.0f64`
14
15 error: used the `round` method with a whole number float
16   --> $DIR/unused_rounding.rs:7:13
17    |
18 LL |     let _ = 1.00f32.round();
19    |             ^^^^^^^^^^^^^^^ help: remove the `round` method call: `1.00f32`
20
21 error: used the `round` method with a whole number float
22   --> $DIR/unused_rounding.rs:13:13
23    |
24 LL |     let _ = 3.0_f32.round();
25    |             ^^^^^^^^^^^^^^^ help: remove the `round` method call: `3.0_f32`
26
27 error: used the `round` method with a whole number float
28   --> $DIR/unused_rounding.rs:15:13
29    |
30 LL |     let _ = 3_3.0_0_f32.round();
31    |             ^^^^^^^^^^^^^^^^^^^ help: remove the `round` method call: `3_3.0_0_f32`
32
33 error: aborting due to 5 previous errors
34