]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2005-default-binding-mode/explicit-mut.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / rfc-2005-default-binding-mode / explicit-mut.stderr
CommitLineData
136023e0 1error[E0594]: cannot assign to `*n`, which is behind a `&` reference
0731742a 2 --> $DIR/explicit-mut.rs:7:13
ea8adc8c 3 |
532ac7d7 4LL | *n += 1;
48663c56 5 | ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
ea8adc8c 6
136023e0 7error[E0594]: cannot assign to `*n`, which is behind a `&` reference
0731742a 8 --> $DIR/explicit-mut.rs:15:13
ea8adc8c 9 |
532ac7d7 10LL | *n += 1;
48663c56 11 | ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
ea8adc8c 12
136023e0 13error[E0594]: cannot assign to `*n`, which is behind a `&` reference
0731742a 14 --> $DIR/explicit-mut.rs:23:13
ea8adc8c 15 |
532ac7d7 16LL | *n += 1;
48663c56 17 | ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
ea8adc8c
XL
18
19error: aborting due to 3 previous errors
20
60c5eb7d 21For more information about this error, try `rustc --explain E0594`.