Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: handle nested closures #1217

Open
Nadrieril opened this issue Jan 6, 2025 · 0 comments
Open

frontend: handle nested closures #1217

Nadrieril opened this issue Jan 6, 2025 · 0 comments
Assignees
Labels
frontend Issue in the Rust to JSON translation

Comments

@Nadrieril
Copy link
Collaborator

Nadrieril commented Jan 6, 2025

The trait refs we compute for nested closures are currently incorrect, e.g. in a case like

fn foo<T: Clone>(x: T) -> impl Fn() -> T {
    let f = move || { move || { x.clone() } };
    f()
}

Open this code snippet in the playground

@Nadrieril Nadrieril self-assigned this Jan 6, 2025
@W95Psp W95Psp added the frontend Issue in the Rust to JSON translation label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Issue in the Rust to JSON translation
Projects
None yet
Development

No branches or pull requests

2 participants