]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2005-default-binding-mode/enum.stderr
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / rfc-2005-default-binding-mode / enum.stderr
1 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
2   --> $DIR/enum.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[E0594]: cannot assign to `*x`, which is behind a `&` reference
8   --> $DIR/enum.rs:13:9
9    |
10 LL |         *x += 1;
11    |         ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
12
13 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
14   --> $DIR/enum.rs:19:9
15    |
16 LL |         *x += 1;
17    |         ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0594`.