We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6686d10 commit e18a83bCopy full SHA for e18a83b
src/test/ui/nll/issue-47388.rs
@@ -15,6 +15,6 @@ struct FancyNum {
15
fn main() {
16
let mut fancy = FancyNum{ num: 5 };
17
let fancy_ref = &(&mut fancy);
18
- fancy_ref.num = 6; //~^ ERROR E0594
+ fancy_ref.num = 6; //~ ERROR E0594
19
println!("{}", fancy_ref.num);
20
}
src/test/ui/nll/issue-47388.stderr
@@ -3,7 +3,7 @@ error[E0594]: cannot assign through `&`-reference `fancy_ref`
3
|
4
LL | let fancy_ref = &(&mut fancy);
5
| ------------- help: consider changing this to be a mutable reference: `&mut`
6
-LL | fancy_ref.num = 6; //~^ ERROR E0594
+LL | fancy_ref.num = 6; //~ ERROR E0594
7
| ^^^^^^^^^^^^^^^^^ cannot assign through `&`-reference
8
9
error: aborting due to previous error
0 commit comments