Undefined hidden symbol compiling code with generics and const reference to static #138942
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-monomorphization
Area: Monomorphization
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: prints
Instead, this happened:
Meta
rustc --version --verbose
:With help from others, I have confirmed this bug is also reproduced on windows, on both the stable and nightly compilers. The code compiles fine on playground, godbolt, and miri, but not with
cargo build
.The text was updated successfully, but these errors were encountered: