Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use #[rustc_on_unimplemented] #43

Open
jendrikw opened this issue Jul 8, 2018 · 1 comment
Open

Use #[rustc_on_unimplemented] #43

jendrikw opened this issue Jul 8, 2018 · 1 comment

Comments

@jendrikw
Copy link

jendrikw commented Jul 8, 2018

With #[rustc_on_unimplemented(mesage = "xxx", label = "xxx")], it is possible to customize error messages if an implementation for a trait is not found. Maybe this can produce better error messages.

It is available under #![feature(on_unimplemented)], which unfortunately requires nightly.

@paholg
Copy link
Owner

paholg commented Aug 12, 2018

This is interesting. What I really want is a way to customize how my types are displayed in all error messages. The potential there to make things confusing is high, though, so I'm guessing this is unlikely be a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants