Why only T is considered unused?

⚓ Rust    📅 2025-07-02    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 36 days ago. The information described in this article may have changed.

for 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

Read full topic

🏷️ rust_feed