Compiler crash when macro generates associated const with stringify #38160
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I get a compiler crash when running the following code.
I get the crash with or without
#![feature(associated_consts)]
at the top of the file, but I don't get it if I generate a normal constant, if I replace thestringify!(abc)
with a string literal, or if I write the code the macro generates directly into the source instead of generating it through a macro.I tried this code:
Error message:
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: