1 error: square can be computed more accurately
2 --> $DIR/floating_point_powi.rs:7:13
4 LL | let _ = x.powi(2);
5 | ^^^^^^^^^ help: consider using: `x * x`
7 = note: `-D clippy::imprecise-flops` implied by `-D warnings`
9 error: square can be computed more accurately
10 --> $DIR/floating_point_powi.rs:8:13
12 LL | let _ = x.powi(1 + 1);
13 | ^^^^^^^^^^^^^ help: consider using: `x * x`
15 error: square can be computed more accurately
16 --> $DIR/floating_point_powi.rs:11:14
18 LL | let _ = (x.powi(2) + y).sqrt();
19 | ^^^^^^^^^ help: consider using: `x * x`
21 error: square can be computed more accurately
22 --> $DIR/floating_point_powi.rs:12:18
24 LL | let _ = (x + y.powi(2)).sqrt();
25 | ^^^^^^^^^ help: consider using: `y * y`
27 error: hypotenuse can be computed more accurately
28 --> $DIR/floating_point_powi.rs:16:13
30 LL | let _ = (x.powi(2) + y.powi(2)).sqrt();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.hypot(y)`
33 error: aborting due to 5 previous errors