diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-09 12:33:45 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-09 12:33:45 +0530 |
| commit | ff30b8cb7bcf3eaee7a5222c8ec35adba4a0d243 (patch) | |
| tree | d90ab8240dc85abb5809e70e78a54d647b86498c /tests/ui/pattern/move-ref-patterns | |
| parent | 2ecc72217b4f134a1ae8b6433af9491bf5d26cf0 (diff) | |
| parent | 3e64e986fe1cbaa3679cd228a6900304ebf81018 (diff) | |
| download | rust-ff30b8cb7bcf3eaee7a5222c8ec35adba4a0d243.tar.gz rust-ff30b8cb7bcf3eaee7a5222c8ec35adba4a0d243.zip | |
Rollup merge of #110583 - Ezrashaw:tweak-make-mut-spans, r=estebank
tweak "make mut" spans when assigning to locals Work towards fixing #106857 This PR just cleans up a lot of spans which is helpful before properly fixing the issues. Best reviewed commit-by-commit. r? `@estebank`
Diffstat (limited to 'tests/ui/pattern/move-ref-patterns')
| -rw-r--r-- | tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr b/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr index c7c7c074f7c..a033cc0655e 100644 --- a/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr +++ b/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr @@ -112,7 +112,7 @@ LL | *_x0 = U; help: consider changing this to be a mutable reference | LL | let (ref mut _x0, _x1, ref _x2, ..) = tup; - | ~~~~~~~~~~~ + | +++ error[E0594]: cannot assign to `*_x2`, which is behind a `&` reference --> $DIR/borrowck-move-ref-pattern.rs:27:5 @@ -123,7 +123,7 @@ LL | *_x2 = U; help: consider changing this to be a mutable reference | LL | let (ref _x0, _x1, ref mut _x2, ..) = tup; - | ~~~~~~~~~~~ + | +++ error[E0382]: use of moved value: `tup.1` --> $DIR/borrowck-move-ref-pattern.rs:28:10 |
