An Interactive Debugger for Rust Trait Errors

42 matt_d 6 5/6/2025, 5:09:42 AM cel.cs.brown.edu ↗

Comments (6)

Rygian · 5h ago
Maybe the example is contrived in a way that does not show the issue very clearly.

User forgot to include the posts table in the query.

Error line 1 says "Cannot select `posts::columns::id` from `users::table`.

For me, that is more than enough to spot the issue. But if I had missed my morning coffee, 5 lines below I have extra help: "note: `posts::columns::id` is no valid selection for `users::table`"

The rest of the "help" lines I can happily ignore.

Meneth · 1h ago
Feels like Zig's comptime call stacks would make for better error reports than these Rust Traits.
Ygg2 · 1h ago
Honestly, I think the mismatch is that you have a code that tries too much to do with Traits.

A simpler, more jooq like interface with strings would work about just as well.

KingOfCoders · 5h ago
Would have been very useful during my Scala days, I often had lots of type errors with long stacks (heard Scala is different today) that took quite some time to fix.

Some years ago I came to the conclusion I like Rust compiler errors the most

https://www.inkmi.com/blog/developer-productivity-compiler-e...

shaolinspirit · 6h ago
"rust traitors"
jgilias · 4h ago
Came to see if someone’s brain parsed it that way too!