Skip to content

type_name doesn't get correct type_name with const generics. #65372

Closed
@crlf0710

Description

@crlf0710

Example code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=2dd38f47a052e3545fad6cd1249d6a6a

dbg!(std::any::type_name::<Test<isize, {3}>>());
=>
[src/main.rs:11] std::any::type_name::<Test<isize, { 3 }>>() = "playground::Test<isize, >"

Metadata

Metadata

Assignees

Labels

A-const-genericsArea: const generics (parameters and arguments)A-intrinsicsArea: IntrinsicsC-bugCategory: This is a bug.F-const_generics`#![feature(const_generics)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions