`Maybe<T>(Maybe<T&>&&)` should do a copy, not a move.
`Maybe<T&>` does not own the `T` it points to. But, before this change, initializing a `Maybe<T>` from a `Maybe<T&>` would inadvertently perform a move, stealing the `T` away from its owner.
Showing
Please
register
or
sign in
to comment