take
#![allow(unused)] fn main() { let src: Option<i32> = Some(1); let dst: Option<i32> = src.take(); }
#![allow(unused)] fn main() { let src: Option<i32> = Some(1); let dst: Option<&i32> = src.as_ref(); }