Really good question. The docs page is just wrong about this. What move
actually does is: make sure that every captured variable is moved (or copied it that’s possible) into the closure. This is commonly relevant when a closure is to be returned from a function, since capturing by-reference would then produce lifetime errors. In particular however, the keyword move
has no effect whatsoever on what Fn*
traits the closure implements.
2 Likes