191
all 9 comments
sorted by: hot top controversial new old
[-] verstra@programming.dev 73 points 5 days ago

Have you erased the continuation of the message that is saying something about "similar names, but are actually two distinct types"?

It is a common error if you have two dependecies that export the same third dependency and your code makes an assumption that the versions of the third dep match.

All other languages either straight-up don't support multiple versions of the same dep, or throw random errors at runtime. So this message is a consequence of rust supporting things that other langs only dream of.

[-] Aurenkin@sh.itjust.works 26 points 5 days ago

I enjoyed the joke but yeah I thought Rust was known for quite good error messages in general. I haven't used it though myself.

[-] floofloof@lemmy.ca 27 points 5 days ago* (last edited 5 days ago)

Rust's compiler is more picky than most, but is really impressive in how it explains the errors and advises on how to fix them. It's a really good feature of Rust.

[-] nous@programming.dev 17 points 5 days ago

The problem is ides inlining only part of the error and generally skip all the helpful text on how to fix the error.

[-] ulterno@programming.dev 2 points 5 days ago

Expansion dropdowns are nice.They make it easier to fit in many errors in a small widget
and provide the user the option to see the rest of the error right there.
Then you have the option in the context menu to go to the actual error text.
I expect these things to be basically available in my IDE

[-] ulterno@programming.dev 1 points 5 days ago* (last edited 5 days ago)

Yeah, C++ would give a linker error.

But that won't be C++, but the linker.
Because as far as C++ goes, all stuff is in a single source file, until fairly recently.

[-] WhyJiffie@sh.itjust.works 3 points 5 days ago

.map_err(utils::err_magic_dont_look)

[-] bratorange@feddit.org 2 points 5 days ago

That was how I solved it ;)

this post was submitted on 09 Jun 2025
191 points (94.0% liked)

Programmer Humor

24174 readers
891 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS