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
21For more information about this error, try `rustc --explain E0594`.
22