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

Show tail expression temporary example that fails in 2024 #345

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Dec 9, 2024

This extends the 2024 tail expression drop chapter to elaborate more on how the temporary scopes have changed. This includes a (contrived) example of something that will fail to compile in 2024, and a suggestion on how to resolve it. I'm not super happy with the example, since it is very unrealistic and unidiomatic, but it is pretty close to lots of real-world examples discovered in crater.

Closes #342

Copy link

@kpreid kpreid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entirely covers what I reported in #342! Thanks!

@ehuss ehuss force-pushed the 2024-tail-temp-failure branch from bafc59e to 60dd130 Compare December 10, 2024 16:38
@traviscross traviscross added this pull request to the merge queue Dec 10, 2024
Merged via the queue into rust-lang:master with commit f56c9ae Dec 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants