3 use std::{future::Future, marker::PhantomData};
5 fn spawn<T>(future: T) -> PhantomData<T::Output>
13 struct IncomingServer {}
15 async fn connection_handler(handler: impl Sized) -> Result<Ok, std::io::Error> {
16 //~^ ERROR expected type, found variant `Ok` [E0573]
19 async fn spawn(&self, request_handler: impl Sized) {
21 spawn(Self::connection_handler(&request_handler));