#![allow(unused_variables)] fn main() { let boxed: Box = Box::from("hello"); let boxed_str: Box<[u8]> = Box::from(boxed); let slice: &[u8] = &[104, 101, 108, 108, 111]; let boxed_slice = Box::from(slice); assert_eq!(boxed_slice, boxed_str); }