]> git.lizzy.rs Git - rust.git/blob - src/test/ui/let-else/let-else-binding-immutable.stderr
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / let-else / let-else-binding-immutable.stderr
1 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
2   --> $DIR/let-else-binding-immutable.rs:9:5
3    |
4 LL |     *x += 1;
5    |     ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0594`.