]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | error[E0594]: cannot assign to `*n`, which is behind a `&` reference |
0731742a | 2 | --> $DIR/explicit-mut.rs:7:13 |
ea8adc8c | 3 | | |
532ac7d7 | 4 | LL | *n += 1; |
48663c56 | 5 | | ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written |
ea8adc8c | 6 | |
136023e0 | 7 | error[E0594]: cannot assign to `*n`, which is behind a `&` reference |
0731742a | 8 | --> $DIR/explicit-mut.rs:15:13 |
ea8adc8c | 9 | | |
532ac7d7 | 10 | LL | *n += 1; |
48663c56 | 11 | | ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written |
ea8adc8c | 12 | |
136023e0 | 13 | error[E0594]: cannot assign to `*n`, which is behind a `&` reference |
0731742a | 14 | --> $DIR/explicit-mut.rs:23:13 |
ea8adc8c | 15 | | |
532ac7d7 | 16 | LL | *n += 1; |
48663c56 | 17 | | ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written |
ea8adc8c XL |
18 | |
19 | error: aborting due to 3 previous errors | |
20 | ||
60c5eb7d | 21 | For more information about this error, try `rustc --explain E0594`. |