]> git.lizzy.rs Git - rust.git/blob - tests/ui/identity_op.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / identity_op.stderr
1 error: the operation is ineffective. Consider reducing it to `x`
2   --> $DIR/identity_op.rs:13:5
3    |
4 13 |     x + 0;
5    |     ^^^^^
6    |
7    = note: `-D clippy::identity-op` implied by `-D warnings`
8
9 error: the operation is ineffective. Consider reducing it to `x`
10   --> $DIR/identity_op.rs:14:5
11    |
12 14 |     x + (1 - 1);
13    |     ^^^^^^^^^^^
14
15 error: the operation is ineffective. Consider reducing it to `x`
16   --> $DIR/identity_op.rs:16:5
17    |
18 16 |     0 + x;
19    |     ^^^^^
20
21 error: the operation is ineffective. Consider reducing it to `x`
22   --> $DIR/identity_op.rs:19:5
23    |
24 19 |     x | (0);
25    |     ^^^^^^^
26
27 error: the operation is ineffective. Consider reducing it to `x`
28   --> $DIR/identity_op.rs:22:5
29    |
30 22 |     x * 1;
31    |     ^^^^^
32
33 error: the operation is ineffective. Consider reducing it to `x`
34   --> $DIR/identity_op.rs:23:5
35    |
36 23 |     1 * x;
37    |     ^^^^^
38
39 error: the operation is ineffective. Consider reducing it to `x`
40   --> $DIR/identity_op.rs:29:5
41    |
42 29 |     -1 & x;
43    |     ^^^^^^
44
45 error: the operation is ineffective. Consider reducing it to `u`
46   --> $DIR/identity_op.rs:32:5
47    |
48 32 |     u & 255;
49    |     ^^^^^^^
50
51 error: aborting due to 8 previous errors
52