Scalar size mismatch: expected 2350837905160 bytes but got 8 bytes instead

⚓ Rust    📅 2025-06-23    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 50 days ago. The information described in this article may have changed.

I've this recurring error popping up and I've no idea how to fix it. I repaired visual studio community installation, removed and reinstalled rustup, switched toolchains and targets (msvc to gnu and back) ... no luck.

The error pops up with different values both when building and in vscode when saving files (as it triggers rust-analyzer parsing). When writing code I just save again and it goes away, but when it comes to build complex projects there's no way for them to run from beginning to the end. And in any case... it's silly to keep it like this.

Any idea?

4 posts - 2 participants

Read full topic

🏷️ rust_feed