]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/identity_op.stderr
405fe12d69f6bcb24180c2db0ea73efc6d17ead8
[rust.git] / clippy_tests / examples / identity_op.stderr
1 error: the operation is ineffective. Consider reducing it to `x`
2   --> identity_op.rs:13:5
3    |
4 13 |     x + 0;
5    |     ^^^^^
6    |
7    = note: `-D identity-op` implied by `-D warnings`
8
9 error: the operation is ineffective. Consider reducing it to `x`
10   --> identity_op.rs:14:5
11    |
12 14 |     x + (1 - 1);
13    |     ^^^^^^^^^^^
14    |
15    = note: `-D identity-op` implied by `-D warnings`
16
17 error: the operation is ineffective. Consider reducing it to `x`
18   --> identity_op.rs:16:5
19    |
20 16 |     0 + x;
21    |     ^^^^^
22    |
23    = note: `-D identity-op` implied by `-D warnings`
24
25 error: the operation is ineffective. Consider reducing it to `x`
26   --> identity_op.rs:19:5
27    |
28 19 |     x | (0);
29    |     ^^^^^^^
30    |
31    = note: `-D identity-op` implied by `-D warnings`
32
33 error: the operation is ineffective. Consider reducing it to `x`
34   --> identity_op.rs:22:5
35    |
36 22 |     x * 1;
37    |     ^^^^^
38    |
39    = note: `-D identity-op` implied by `-D warnings`
40
41 error: the operation is ineffective. Consider reducing it to `x`
42   --> identity_op.rs:23:5
43    |
44 23 |     1 * x;
45    |     ^^^^^
46    |
47    = note: `-D identity-op` implied by `-D warnings`
48
49 error: the operation is ineffective. Consider reducing it to `x`
50   --> identity_op.rs:29:5
51    |
52 29 |     -1 & x;
53    |     ^^^^^^
54    |
55    = note: `-D identity-op` implied by `-D warnings`
56
57 error: aborting due to previous error(s)
58
59 error: Could not compile `clippy_tests`.
60
61 To learn more, run the command again with --verbose.