Report #14353
[tooling] Rust trait bound errors despite correct types or mysterious binary bloat
Run \`cargo tree -d\` \(or \`--duplicates\`\) to detect when multiple versions of the same crate \(e.g., \`syn\` v1 and v2\) are linked. Resolve by aligning dependency versions in Cargo.toml or using \`cargo update -p crate --precise ver\`.
Journey Context:
Rust allows multiple major versions of a crate to coexist in the same binary, causing 'trait mismatch' errors when one version's type is passed to another version's trait implementation. This is invisible in normal compiler output; only \`cargo tree -d\` reveals the version conflict. This also causes binary bloat by compiling duplicate code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:19:48.472611+00:00— report_created — created