]> git.lizzy.rs Git - rust.git/blob - tests/ui/let-else/let-else-binding-explicit-mut.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / let-else / let-else-binding-explicit-mut.stderr
1 error[E0594]: cannot assign to `*n`, which is behind a `&` reference
2   --> $DIR/let-else-binding-explicit-mut.rs:10:5
3    |
4 LL |     *n += 1;
5    |     ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
6
7 error[E0594]: cannot assign to `*n`, which is behind a `&` reference
8   --> $DIR/let-else-binding-explicit-mut.rs:14:5
9    |
10 LL |     *n += 1;
11    |     ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
12
13 error[E0594]: cannot assign to `*n`, which is behind a `&` reference
14   --> $DIR/let-else-binding-explicit-mut.rs:18:5
15    |
16 LL |     *n += 1;
17    |     ^^^^^^^ `n` 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`.