Skip to content

Commit e18a83b

Browse files
committed
fix ui test
1 parent 6686d10 commit e18a83b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/nll/issue-47388.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ struct FancyNum {
1515
fn main() {
1616
let mut fancy = FancyNum{ num: 5 };
1717
let fancy_ref = &(&mut fancy);
18-
fancy_ref.num = 6; //~^ ERROR E0594
18+
fancy_ref.num = 6; //~ ERROR E0594
1919
println!("{}", fancy_ref.num);
2020
}

src/test/ui/nll/issue-47388.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0594]: cannot assign through `&`-reference `fancy_ref`
33
|
44
LL | let fancy_ref = &(&mut fancy);
55
| ------------- help: consider changing this to be a mutable reference: `&mut`
6-
LL | fancy_ref.num = 6; //~^ ERROR E0594
6+
LL | fancy_ref.num = 6; //~ ERROR E0594
77
| ^^^^^^^^^^^^^^^^^ cannot assign through `&`-reference
88

99
error: aborting due to previous error

0 commit comments

Comments
 (0)