diff options
Diffstat (limited to 'tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed')
-rw-r--r-- | tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed b/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed index b69bad988..556c95438 100644 --- a/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed +++ b/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed @@ -11,7 +11,7 @@ fn main() { let mut map = HashMap::new(); map.insert("a", Test { v: 0 }); - for (_k, mut v) in map.iter_mut() { + for (_k, v) in map.iter_mut() { //~^ HELP use mutable method //~| NOTE this iterator yields `&` references v.v += 1; |