Why only T is considered unused?
⚓ Rust 📅 2025-07-02 👤 surdeus 👁️ 18for the following defination:
struct AsyncWrapper<F, R, T, U>(F, PhantomData<T>)
where
F: Fn(&mut T) -> R + Send + Sync,
U: Message + 'static,
T: Message + Default + 'static,
R: Future<Output = U> + Send + 'static;
only T is considered as unused, thus requires the PhantomData, why?
1 post - 1 participant
🏷️ rust_feed