rustc-dev-guide icon indicating copy to clipboard operation
rustc-dev-guide copied to clipboard

Define "existential impl Trait" and "universal impl Trait"

Open rylev opened this issue 5 years ago • 1 comments

In the section on AST to HIR lowering, these terms are used without explanation or definition. Perhaps they should be added to the glossary and then linked to.

rylev avatar Jan 06 '21 10:01 rylev

'existential' means types in return position (-> impl Future), 'universal' means in argument position (f: impl Future).

jyn514 avatar Jan 07 '21 18:01 jyn514