//~| SUGGESTION r
Either::One(_t) => (),
Either::Two(ref _t) => (),
- // TODO: should suggest removing `ref` too
+ // FIXME: should suggest removing `ref` too
}
let X(_t) = *sm;
//~| SUGGESTION rm
Either::One(_t) => (),
Either::Two(ref _t) => (),
- // TODO: should suggest removing `ref` too
+ // FIXME: should suggest removing `ref` too
}
match *rm {
//~^ ERROR cannot move
//~| SUGGESTION rm
Either::One(_t) => (),
Either::Two(ref mut _t) => (),
- // TODO: should suggest removing `ref mut` too
+ // FIXME: should suggest removing `ref mut` too
}
let X(_t) = vs_[0];
//~| SUGGESTION &vr[0]
Either::One(_t) => (),
Either::Two(ref _t) => (),
- // TODO: should suggest removing `ref` too
+ // FIXME: should suggest removing `ref` too
}
let X(_t) = vsm[0];
//~| SUGGESTION &vrm[0]
Either::One(_t) => (),
Either::Two(ref _t) => (),
- // TODO: should suggest removing `ref` too
+ // FIXME: should suggest removing `ref` too
}
match vrm[0] {
//~^ ERROR cannot move
//~| SUGGESTION &vrm[0]
Either::One(_t) => (),
Either::Two(ref mut _t) => (),
- // TODO: should suggest removing `ref mut` too
+ // FIXME: should suggest removing `ref mut` too
}
// --------
//~^ HELP consider removing the `&`
//~| SUGGESTION Either::One(_t)
| &Either::Two(_t) => (),
- // TODO: would really like a suggestion here too
+ // FIXME: would really like a suggestion here too
}
match r {
//~^ ERROR cannot move
//~^ HELP consider removing the `&`
//~| SUGGESTION Either::One(_t)
| &Either::Two(_t) => (),
- // TODO: would really like a suggestion here too
+ // FIXME: would really like a suggestion here too
}
match &e {
//~^ ERROR cannot move
//~^ HELP consider removing the `&mut`
//~| SUGGESTION Either::One(_t)
| &mut Either::Two(_t) => (),
- // TODO: would really like a suggestion here too
+ // FIXME: would really like a suggestion here too
}
match &mut em {
//~^ ERROR cannot move