We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af5edc3 commit 212da12Copy full SHA for 212da12
src/test/ui/suggestions/issue-51244.rs
@@ -10,5 +10,5 @@
10
11
fn main() {
12
let ref my_ref @ _ = 0;
13
- *my_ref = 0;
+ *my_ref = 0; //~ ERROR cannot assign to immutable borrowed content `*my_ref` [E0594]
14
}
src/test/ui/suggestions/issue-51244.stderr
@@ -2,8 +2,8 @@ error[E0594]: cannot assign to immutable borrowed content `*my_ref`
2
--> $DIR/issue-51244.rs:13:5
3
|
4
LL | let ref my_ref @ _ = 0;
5
- | --- consider changing this to `ref mut`
6
-LL | *my_ref = 0;
+ | -------------- consider changing this to `ref mut my_ref @ _`
+LL | *my_ref = 0; //~ ERROR cannot assign to immutable borrowed content `*my_ref` [E0594]
7
| ^^^^^^^^^^^ cannot borrow as mutable
8
9
error: aborting due to previous error
0 commit comments