Warning
This post was published 37 days ago. The information described in this article may have changed.
compile the code
struct StreamWrapper<F, T, U>(F, PhantomData<(T, U)>)
get:
rustc [E0277]: the trait bound
U: std::marker::Copy
is not satisfied
the traitstd::marker::Copy
is not implemented forU
rustc [E0277]: the trait boundT: std::marker::Copy
is not satisfied
the traitstd::marker::Copy
is not implemented forT
but still, there is
impl<T> Copy for PhantomData<T>
where
T: ?Sized,
in std library,
So, tuple is not a type?
4 posts - 4 participants
🏷️ rust_feed