Unexpected error: the associated type
<U as util::async::Async>::Value may not live long enough
#21150
Labels
A-associated-items
Area: Associated items (types, constants & functions)
I have been attempting to switch my Future / Stream lib to use associated types, however I have been hitting snags. Even though all the types (as far as I can tell) are bound by Send (and some by 'static too), I have been getting a lot of error messages:
The repro is trying to compile syncbox on the async-associated-type branch. Sorry for not reducing more 😢
https://github.com/carllerche/syncbox/tree/async-associated-type
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: