5;
let y = Box::new(x);
Here first value of x gets copied to heap and that heap reference is saved in y. Have I understood it correctly?
Yeap
Обсуждают сегодня