diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-07-26 16:04:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-26 16:04:36 +0200 |
| commit | f9d00b4a7850ca3a5c710fec1debaf421b339718 (patch) | |
| tree | 716223cf7a83ab26be551acba36a5307861bb480 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | e3c6cd23cfa69f9f985d52e4d59771ebfc795e84 (diff) | |
| parent | b4a873f54899c31525d3f1e1717b1d1a54191c21 (diff) | |
| download | rust-f9d00b4a7850ca3a5c710fec1debaf421b339718.tar.gz rust-f9d00b4a7850ca3a5c710fec1debaf421b339718.zip | |
Rollup merge of #87458 - ibraheemdev:help-msg-block-borrow, r=oli-obk
Fix help message for modification to &T created by &{t}
Previous:
```rust
error[E0594]: cannot assign to `*x` which is behind a `&` reference
--> src/main.rs:3:5
|
2 | let x: &usize = &mut{0};
| ------- help: consider changing this to be a mutable reference: `&mut mut{0}`
3 | *x = 1;
| ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
```
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
