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

Add errors7 exercise to show full potential of try operator combined with From trait #2195

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

gdziadkiewicz
Copy link

Thanks for creating the Rustlings! I loved it!

While doing them I felt that the user might miss the full potential of the try operator due to the lack of exercise that shows how well custom error types work with it and From trait. This PR adds an exercise focused on that. I placed it after the first trait exercise to be sure that they understand what they are doing.

Only after creating the thing did I find out that I should have created an issue first - sorry for that!

If it goes in let's squash it.

@mamalieaz
Copy link

salam

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

Successfully merging this pull request may close these issues.

2 participants