Unresolved symbol linker error when running cargo test
with an #[used]
static variable on Windows
#127132
Labels
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
Compiling the following code with
cargo test
on thex86_64-pc-windows-msvc
toolchain results in linker errors.This compiles, if I remove the
#[used]
attribute.Code
Version it worked on
It most recently worked on: rustc 1.81.0-nightly (fda509e 2024-06-25)
Version with regression
rustc --version --verbose
:Error output
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: