dtolnay / async-trait

Type erasure for async trait methods
Apache License 2.0
1.84k stars 85 forks source link

Prevent positional args from being named inside function body #202

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

Fixes this observation from #199.

Surprisingly, the suggestion rustfix makes does actually work, which also seems like a bug to me -- I would have expected the __arg0 arguments to have some kind of hygiene which prevented them from being named.