[Example] Attaching source code to diagnostic while supporting different labels #460
adamnejm
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Heya, I'm learning Rust and it took me quite a while to figure out the proper way to structure my errors and how to attach
source_codeon bubble up while supporting differentlabels.Not sure if this is the best approach, but it's exactly what I wanted.
Just gonna leave this my fellow newbies :)
Beta Was this translation helpful? Give feedback.
All reactions