@@ -447,7 +447,7 @@ LL | let &mut X(_t) = sm;
447447help: consider removing the mutable borrow
448448 |
449449LL - let &mut X(_t) = sm;
450- LL + let mut X(_t) = sm;
450+ LL + let X(_t) = sm;
451451 |
452452
453453error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
@@ -462,7 +462,7 @@ LL | if let &mut Either::One(_t) = rm { }
462462help: consider removing the mutable borrow
463463 |
464464LL - if let &mut Either::One(_t) = rm { }
465- LL + if let mut Either::One(_t) = rm { }
465+ LL + if let Either::One(_t) = rm { }
466466 |
467467
468468error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
@@ -477,7 +477,7 @@ LL | while let &mut Either::One(_t) = rm { }
477477help: consider removing the mutable borrow
478478 |
479479LL - while let &mut Either::One(_t) = rm { }
480- LL + while let mut Either::One(_t) = rm { }
480+ LL + while let Either::One(_t) = rm { }
481481 |
482482
483483error[E0507]: cannot move out of `rm` as enum variant `Two` which is behind a mutable reference
@@ -496,12 +496,12 @@ LL | &mut Either::Two(_t) => (),
496496help: consider removing the mutable borrow
497497 |
498498LL - &mut Either::One(_t) => (),
499- LL + mut Either::One(_t) => (),
499+ LL + Either::One(_t) => (),
500500 |
501501help: consider removing the mutable borrow
502502 |
503503LL - &mut Either::Two(_t) => (),
504- LL + mut Either::Two(_t) => (),
504+ LL + Either::Two(_t) => (),
505505 |
506506
507507error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
@@ -519,7 +519,7 @@ LL | &mut Either::One(_t) => (),
519519help: consider removing the mutable borrow
520520 |
521521LL - &mut Either::One(_t) => (),
522- LL + mut Either::One(_t) => (),
522+ LL + Either::One(_t) => (),
523523 |
524524
525525error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
@@ -537,7 +537,7 @@ LL | &mut Either::One(_t) => (),
537537help: consider removing the mutable borrow
538538 |
539539LL - &mut Either::One(_t) => (),
540- LL + mut Either::One(_t) => (),
540+ LL + Either::One(_t) => (),
541541 |
542542
543543error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
@@ -555,7 +555,7 @@ LL | &mut Either::One(_t) => (),
555555help: consider removing the mutable borrow
556556 |
557557LL - &mut Either::One(_t) => (),
558- LL + mut Either::One(_t) => (),
558+ LL + Either::One(_t) => (),
559559 |
560560
561561error[E0507]: cannot move out of a shared reference
@@ -792,7 +792,7 @@ LL | let &mut X(_t) = &mut xm;
792792help: consider removing the mutable borrow
793793 |
794794LL - let &mut X(_t) = &mut xm;
795- LL + let mut X(_t) = &mut xm;
795+ LL + let X(_t) = &mut xm;
796796 |
797797
798798error[E0507]: cannot move out of a mutable reference
@@ -807,7 +807,7 @@ LL | if let &mut Either::One(_t) = &mut em { }
807807help: consider removing the mutable borrow
808808 |
809809LL - if let &mut Either::One(_t) = &mut em { }
810- LL + if let mut Either::One(_t) = &mut em { }
810+ LL + if let Either::One(_t) = &mut em { }
811811 |
812812
813813error[E0507]: cannot move out of a mutable reference
@@ -822,7 +822,7 @@ LL | while let &mut Either::One(_t) = &mut em { }
822822help: consider removing the mutable borrow
823823 |
824824LL - while let &mut Either::One(_t) = &mut em { }
825- LL + while let mut Either::One(_t) = &mut em { }
825+ LL + while let Either::One(_t) = &mut em { }
826826 |
827827
828828error[E0507]: cannot move out of a mutable reference
@@ -840,7 +840,7 @@ LL | &mut Either::One(_t)
840840help: consider removing the mutable borrow
841841 |
842842LL - &mut Either::One(_t)
843- LL + mut Either::One(_t)
843+ LL + Either::One(_t)
844844 |
845845
846846error[E0507]: cannot move out of a mutable reference
@@ -858,7 +858,7 @@ LL | &mut Either::One(_t) => (),
858858help: consider removing the mutable borrow
859859 |
860860LL - &mut Either::One(_t) => (),
861- LL + mut Either::One(_t) => (),
861+ LL + Either::One(_t) => (),
862862 |
863863
864864error[E0507]: cannot move out of a mutable reference
@@ -876,7 +876,7 @@ LL | &mut Either::One(_t) => (),
876876help: consider removing the mutable borrow
877877 |
878878LL - &mut Either::One(_t) => (),
879- LL + mut Either::One(_t) => (),
879+ LL + Either::One(_t) => (),
880880 |
881881
882882error[E0507]: cannot move out of a mutable reference
@@ -894,7 +894,7 @@ LL | &mut Either::One(_t) => (),
894894help: consider removing the mutable borrow
895895 |
896896LL - &mut Either::One(_t) => (),
897- LL + mut Either::One(_t) => (),
897+ LL + Either::One(_t) => (),
898898 |
899899
900900error[E0507]: cannot move out of a shared reference
@@ -924,7 +924,7 @@ LL | fn f2(&mut X(_t): &mut X) { }
924924help: consider removing the mutable borrow
925925 |
926926LL - fn f2(&mut X(_t): &mut X) { }
927- LL + fn f2(mut X(_t): &mut X) { }
927+ LL + fn f2(X(_t): &mut X) { }
928928 |
929929
930930error[E0507]: cannot move out of a shared reference
0 commit comments