fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
657 B20 linesraw
1error[E0594]: cannot assign to `*x` which is behind a `&` reference
2  --> $DIR/enum.rs:9:5
3   |
4LL |     *x += 1;
5   |     ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
6
7error[E0594]: cannot assign to `*x` which is behind a `&` reference
8  --> $DIR/enum.rs:13:9
9   |
10LL |         *x += 1;
11   |         ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
12
13error[E0594]: cannot assign to `*x` which is behind a `&` reference
14  --> $DIR/enum.rs:19:9
15   |
16LL |         *x += 1;
17   |         ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
18
19error: aborting due to 3 previous errors
20