I cannot use .boxed() because it triggers errors about "one type is more general than the other".
So I use
Box::pin() instead which works fine. However, the reason I use box at all here is that I need to reduce the type size of the future because I hit the compiler limit, so I need to cast it to Box<Pin<dyn ..>> I suppose? Will that help?
But it seems I cannot escape my fate which is "one type is more general than the other": https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c0b057e9f9f6b9be9e064c3d68f57676 (edit: wrong link)
I have been wrestling with these errors almost a whole week and I'm desperate for a solution. Please help