]> git.lizzy.rs Git - rust.git/blob - tests/ui/unnecessary_cast_fixable.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / unnecessary_cast_fixable.stderr
1 error: casting integer literal to `f32` is unnecessary
2   --> $DIR/unnecessary_cast_fixable.rs:8:5
3    |
4 LL |     100 as f32;
5    |     ^^^^^^^^^^ help: try: `100_f32`
6    |
7    = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
8
9 error: casting integer literal to `f64` is unnecessary
10   --> $DIR/unnecessary_cast_fixable.rs:9:5
11    |
12 LL |     100 as f64;
13    |     ^^^^^^^^^^ help: try: `100_f64`
14
15 error: casting integer literal to `f64` is unnecessary
16   --> $DIR/unnecessary_cast_fixable.rs:10:5
17    |
18 LL |     100_i32 as f64;
19    |     ^^^^^^^^^^^^^^ help: try: `100_f64`
20
21 error: aborting due to 3 previous errors
22