This is a minimal reproducer related to an unexpected Cargo behaviour.
Run cargo build
, this will not build.
See the .cargo/config
file and the original issue for some insight.
Change the .cargo/config
so that it does not contain a conditional section:
[build]
rustflags = ["--cfg", "my_flag"]
cargo run
will succeed.