1 error: assign operation detected
2 --> $DIR/assign_ops.rs:8:5
5 | ^^^^^^ help: replace it with `i = i + 2`
7 note: lint level defined here
8 --> $DIR/assign_ops.rs:4:8
10 4 | #[deny(assign_ops)]
13 error: assign operation detected
14 --> $DIR/assign_ops.rs:11:5
17 | ^^^^^^^^^^^ help: replace it with `i = i + 2 + 17`
19 error: assign operation detected
20 --> $DIR/assign_ops.rs:14:5
23 | ^^^^^^ help: replace it with `i = i - 6`
25 error: assign operation detected
26 --> $DIR/assign_ops.rs:17:5
29 | ^^^^^^^^^^ help: replace it with `i = i - (2 - 1)`
31 error: assign operation detected
32 --> $DIR/assign_ops.rs:21:5
35 | ^^^^^^ help: replace it with `i = i * 5`
37 error: assign operation detected
38 --> $DIR/assign_ops.rs:24:5
41 | ^^^^^^^^ help: replace it with `i = i * (1+5)`
43 error: assign operation detected
44 --> $DIR/assign_ops.rs:27:5
47 | ^^^^^^^ help: replace it with `i = i / 32`
49 error: assign operation detected
50 --> $DIR/assign_ops.rs:30:5
53 | ^^^^^^^^^^^ help: replace it with `i = i / (32 | 5)`
55 error: assign operation detected
56 --> $DIR/assign_ops.rs:33:5
59 | ^^^^^^^^^^^ help: replace it with `i = i / (32 / 5)`
61 error: assign operation detected
62 --> $DIR/assign_ops.rs:36:5
65 | ^^^^^^^ help: replace it with `i = i % 42`
67 error: assign operation detected
68 --> $DIR/assign_ops.rs:39:5
71 | ^^^^^^^ help: replace it with `i = i >> i`
73 error: assign operation detected
74 --> $DIR/assign_ops.rs:42:5
77 | ^^^^^^^^^^^^^^^ help: replace it with `i = i << (9 + 6 - 7)`
79 error: assign operation detected
80 --> $DIR/assign_ops.rs:45:5
83 | ^^^^^^^^^^^ help: replace it with `i = i + (1 << 5)`
85 error: manual implementation of an assign operation
86 --> $DIR/assign_ops.rs:55:5
89 | ^^^^^^^^^ help: replace it with `a += 1`
91 note: lint level defined here
92 --> $DIR/assign_ops.rs:52:8
94 52 | #[deny(assign_op_pattern)]
97 error: manual implementation of an assign operation
98 --> $DIR/assign_ops.rs:58:5
101 | ^^^^^^^^^ help: replace it with `a += 1`
103 error: manual implementation of an assign operation
104 --> $DIR/assign_ops.rs:61:5
107 | ^^^^^^^^^ help: replace it with `a -= 1`
109 error: manual implementation of an assign operation
110 --> $DIR/assign_ops.rs:64:5
113 | ^^^^^^^^^^ help: replace it with `a *= 99`
115 error: manual implementation of an assign operation
116 --> $DIR/assign_ops.rs:67:5
119 | ^^^^^^^^^^ help: replace it with `a *= 42`
121 error: manual implementation of an assign operation
122 --> $DIR/assign_ops.rs:70:5
125 | ^^^^^^^^^ help: replace it with `a /= 2`
127 error: manual implementation of an assign operation
128 --> $DIR/assign_ops.rs:73:5
131 | ^^^^^^^^^ help: replace it with `a %= 5`
133 error: manual implementation of an assign operation
134 --> $DIR/assign_ops.rs:76:5
137 | ^^^^^^^^^ help: replace it with `a &= 1`
139 error: aborting due to 21 previous errors