You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){let x:Box<std::fmt::Debug> = Box::new("hello");println!("{:p}", x);// error: the trait `core::marker::Sized` is not implemented for the type `core::fmt::Debug`}
I think Pointer should be impled as follows:
impl<T: ?Sized> Pointer for Box<T>
and likewise for borrowed refs, raw pointers, Arc etc.