Closed
Description
See: https://github.com/jonas-schievink/rubble/compare/incr-linker-error
Build the first commit (jonas-schievink/rubble@04cf1d1), then the second (jonas-schievink/rubble@cedf7be) using cargo build
, and you should get a linker error like this:
= note: rust-lld: error: undefined symbol: _$LT$rubble..ble..time..Duration$u20$as$u20$core..fmt..Display$GT$::fmt::h343296729f83afc4
>>> referenced by time.rs:129 (src/ble/time.rs:129)
>>> /home/jonas/dev/rubble/target/thumbv7em-none-eabi/debug/deps/rubble-a38354bf4561073f.3qtzuenakrd0qcaf.rcgu.o:(_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$::fmt::h26ac05bd6f4f461e)
Note that this needs the thumbv7em-none-eabi
target, so you might need to run rustup target add thumbv7em-none-eabi
beforehand.
This is on rustc 1.33.0 (2aa4c46cf 2019-02-28)
.
Also reproduces on rustc 1.35.0-nightly (237bf3244 2019-03-28)
.