Skip to content

Commit

Permalink
fix ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurikholkar committed Apr 6, 2018
1 parent 6686d10 commit e18a83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/nll/issue-47388.rs
Expand Up @@ -15,6 +15,6 @@ struct FancyNum {
fn main() {
let mut fancy = FancyNum{ num: 5 };
let fancy_ref = &(&mut fancy);
fancy_ref.num = 6; //~^ ERROR E0594
fancy_ref.num = 6; //~ ERROR E0594
println!("{}", fancy_ref.num);
}
2 changes: 1 addition & 1 deletion src/test/ui/nll/issue-47388.stderr
Expand Up @@ -3,7 +3,7 @@ error[E0594]: cannot assign through `&`-reference `fancy_ref`
|
LL | let fancy_ref = &(&mut fancy);
| ------------- help: consider changing this to be a mutable reference: `&mut`
LL | fancy_ref.num = 6; //~^ ERROR E0594
LL | fancy_ref.num = 6; //~ ERROR E0594
| ^^^^^^^^^^^^^^^^^ cannot assign through `&`-reference

error: aborting due to previous error
Expand Down

0 comments on commit e18a83b

Please sign in to comment.