-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-async-closures`async || {}``async || {}`A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Code:
fn main() {
let f = async || {};
println!("{}", std::any::type_name_of_val(&f()));
}
Output
playground::main::{{closure}}::{{closure}}<i16>
I know that there aren't any guarantees on the exact output format, but having a random <i16>
seems rather confusing.
Meta
Reproducible on the playground with version 1.91.0-nightly (2025-08-18 9eb4a2652031ed5ba97c)
fmease, bjorn3 and Scripter17
Metadata
Metadata
Assignees
Labels
A-async-closures`async || {}``async || {}`A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.