Tuple is not a type?
⚓ Rust 📅 2025-07-01 👤 surdeus 👁️ 15compile the code
struct StreamWrapper<F, T, U>(F, PhantomData<(T, U)>)
get:
rustc [E0277]: the trait bound
U: std::marker::Copyis not satisfied
the traitstd::marker::Copyis not implemented forU
rustc [E0277]: the trait boundT: std::marker::Copyis not satisfied
the traitstd::marker::Copyis 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