about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-11-08 11:45:13 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-11-12 11:13:05 -0500
commit2baa0ceff4e6dc75751fdca4be68e87f5cf35a6e (patch)
tree2cd8bec01e33fc21d2d41ac8490434c7691c21be /src/test/codegen/src-hash-algorithm
parent380b222f52ee2f506d35ba89bbd8f83f6469f31f (diff)
downloadrust-2baa0ceff4e6dc75751fdca4be68e87f5cf35a6e.tar.gz
rust-2baa0ceff4e6dc75751fdca4be68e87f5cf35a6e.zip
Don't reuse bindings for `ref mut`
Reusing bindings causes errors later in lowering:

```
 error[E0596]: cannot borrow `vec` as mutable, as it is not declared as mutable
  --> /checkout/src/test/ui/async-await/argument-patterns.rs:12:20
   |
LL | async fn b(n: u32, ref mut vec: A) {
   |                    ^^^^^^^^^^^
   |                    |
   |                    cannot borrow as mutable
   |                    help: consider changing this to be mutable: `mut vec`
```
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions