1 error: square can be computed more efficiently
2 --> $DIR/floating_point_powi.rs:7:13
4 LL | let _ = x.powi(2);
5 | ^^^^^^^^^ help: consider using: `x * x`
7 = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
9 error: square can be computed more efficiently
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 efficiently
16 --> $DIR/floating_point_powi.rs:11:13
18 LL | let _ = x.powi(2) + y;
19 | ^^^^^^^^^^^^^ help: consider using: `x.mul_add(x, y)`
21 error: square can be computed more efficiently
22 --> $DIR/floating_point_powi.rs:12:13
24 LL | let _ = x + y.powi(2);
25 | ^^^^^^^^^^^^^ help: consider using: `y.mul_add(y, x)`
27 error: square can be computed more efficiently
28 --> $DIR/floating_point_powi.rs:13:13
30 LL | let _ = (x.powi(2) + y).sqrt();
31 | ^^^^^^^^^^^^^^^ help: consider using: `x.mul_add(x, y)`
33 error: square can be computed more efficiently
34 --> $DIR/floating_point_powi.rs:14:13
36 LL | let _ = (x + y.powi(2)).sqrt();
37 | ^^^^^^^^^^^^^^^ help: consider using: `y.mul_add(y, x)`
39 error: aborting due to 6 previous errors