]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-toml/arithmetic_side_effects_allowed/arithmetic_side_effects_allowed.stderr
Merge from rustc
[rust.git] / src / tools / clippy / tests / ui-toml / arithmetic_side_effects_allowed / arithmetic_side_effects_allowed.stderr
1 error: arithmetic operation that can potentially result in unexpected side-effects
2   --> $DIR/arithmetic_side_effects_allowed.rs:68:13
3    |
4 LL |     let _ = Baz + Baz;
5    |             ^^^^^^^^^
6    |
7    = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
8
9 error: arithmetic operation that can potentially result in unexpected side-effects
10   --> $DIR/arithmetic_side_effects_allowed.rs:79:13
11    |
12 LL |     let _ = 1i32 + Baz;
13    |             ^^^^^^^^^^
14
15 error: arithmetic operation that can potentially result in unexpected side-effects
16   --> $DIR/arithmetic_side_effects_allowed.rs:82:13
17    |
18 LL |     let _ = 1i64 + Foo;
19    |             ^^^^^^^^^^
20
21 error: arithmetic operation that can potentially result in unexpected side-effects
22   --> $DIR/arithmetic_side_effects_allowed.rs:86:13
23    |
24 LL |     let _ = 1i64 + Baz;
25    |             ^^^^^^^^^^
26
27 error: arithmetic operation that can potentially result in unexpected side-effects
28   --> $DIR/arithmetic_side_effects_allowed.rs:97:13
29    |
30 LL |     let _ = Baz + 1i32;
31    |             ^^^^^^^^^^
32
33 error: arithmetic operation that can potentially result in unexpected side-effects
34   --> $DIR/arithmetic_side_effects_allowed.rs:100:13
35    |
36 LL |     let _ = Foo + 1i64;
37    |             ^^^^^^^^^^
38
39 error: arithmetic operation that can potentially result in unexpected side-effects
40   --> $DIR/arithmetic_side_effects_allowed.rs:104:13
41    |
42 LL |     let _ = Baz + 1i64;
43    |             ^^^^^^^^^^
44
45 error: arithmetic operation that can potentially result in unexpected side-effects
46   --> $DIR/arithmetic_side_effects_allowed.rs:113:13
47    |
48 LL |     let _ = -Bar;
49    |             ^^^^
50
51 error: arithmetic operation that can potentially result in unexpected side-effects
52   --> $DIR/arithmetic_side_effects_allowed.rs:115:13
53    |
54 LL |     let _ = -Baz;
55    |             ^^^^
56
57 error: aborting due to 9 previous errors
58