]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_rounding.stderr
Auto merge of #99963 - cjgillot:iter-submodule, r=compiler-errors
[rust.git] / src / tools / clippy / 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: aborting due to 3 previous errors
22