Skip to content

Add regression test for issue #87290#157160

Open
pbkx wants to merge 2 commits into
rust-lang:mainfrom
pbkx:issue-87290-closure-lifetime-test
Open

Add regression test for issue #87290#157160
pbkx wants to merge 2 commits into
rust-lang:mainfrom
pbkx:issue-87290-closure-lifetime-test

Conversation

@pbkx
Copy link
Copy Markdown

@pbkx pbkx commented May 30, 2026

Issue #87290 is labeled E-needs-test for explicit non-'static lifetimes in closure argument types.

This adds a check-pass UI test for explicit lifetimes in closure argument types.

Fixes #87290.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 30, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 30, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 30, 2026

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 16 candidates

Copy link
Copy Markdown
Member

@Kivooeo Kivooeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for a PR! One small nit

View changes since this review

Comment thread tests/ui/closures/explicit-closure-lifetime-issue-87290.rs Outdated
Co-authored-by: Kivooeo <75776246+Kivooeo@users.noreply.github.com>
@Kivooeo Kivooeo assigned Kivooeo and unassigned JonathanBrouwer May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explicit non-'static lifetimes ignored in explicit closure argument types

4 participants