Skip to content

"fishy" skip_binder actually ignoring bound variables #104825

Closed
@oli-obk

Description

@oli-obk
    An `expect` there actually does panic for the `src/test/ui/generator/resume-arg-late-bound.rs` test.

I only moved this code between the files, the same comment and code pattern exists as well for normal closures:

// (1) Feels icky to skip the binder here, but OTOH we know

Originally posted by @Swatinem in #104321 (comment)

Metadata

Metadata

Labels

A-closuresArea: Closures (`|…| { … }`)C-bugCategory: This is a bug.T-typesRelevant to the types team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions