Skip to content

Conversation

@paldepind
Copy link
Contributor

@paldepind paldepind commented Jan 9, 2026

In the special FnOnce(Args) -> ReturnType syntax, the return type can be omitted which is equivalent to specifying () as the return type.

I moved the handling of this from getTypeMentionForTypeParameter to getTypeForTypeParameterAt since we now have a case where a suitable type mention is present.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant