]> git.lizzy.rs Git - rust.git/blob - tests/ui/mul_add.stderr
Auto merge of #4809 - iankronquist:patch-1, r=flip1995
[rust.git] / tests / ui / mul_add.stderr
1 error: consider using `mul_add()` for better numerical precision
2   --> $DIR/mul_add.rs:10:17
3    |
4 LL |     let test1 = (a * b + c) * (c + a * b) + (c + (a * b) + c);
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(a * b + c).mul_add((c + a * b), (c + (a * b) + c))`
6    |
7    = note: `-D clippy::manual-mul-add` implied by `-D warnings`
8
9 error: consider using `mul_add()` for better numerical precision
10   --> $DIR/mul_add.rs:10:17
11    |
12 LL |     let test1 = (a * b + c) * (c + a * b) + (c + (a * b) + c);
13    |                 ^^^^^^^^^^^ help: try: `a.mul_add(b, c)`
14
15 error: consider using `mul_add()` for better numerical precision
16   --> $DIR/mul_add.rs:10:31
17    |
18 LL |     let test1 = (a * b + c) * (c + a * b) + (c + (a * b) + c);
19    |                               ^^^^^^^^^^^ help: try: `a.mul_add(b, c)`
20
21 error: consider using `mul_add()` for better numerical precision
22   --> $DIR/mul_add.rs:10:46
23    |
24 LL |     let test1 = (a * b + c) * (c + a * b) + (c + (a * b) + c);
25    |                                              ^^^^^^^^^^^ help: try: `a.mul_add(b, c)`
26
27 error: consider using `mul_add()` for better numerical precision
28   --> $DIR/mul_add.rs:11:17
29    |
30 LL |     let test2 = 1234.567 * 45.67834 + 0.0004;
31    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1234.567.mul_add(45.67834, 0.0004)`
32
33 error: aborting due to 5 previous errors
34