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 trait bound to example for MutexGuard that is !Send + Sync #1358

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

fbornhofen
Copy link
Collaborator

This example only makes sense (and is therefore easier to understand logically :) ) if T is Sync. See rust-lang/rust#41622 - this used to be a bug initially.

This example only makes sense (and is therefore easier to understand logically :) ) if T is Sync.
See rust-lang/rust#41622 - this used to be a bug initially.
@fbornhofen fbornhofen requested a review from sakex October 12, 2023 19:12
Copy link
Collaborator

@sakex sakex left a comment

Choose a reason for hiding this comment

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

Thanks Fabian :)

@sakex sakex merged commit a0bb5f3 into google:main Oct 12, 2023
30 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
Development

Successfully merging this pull request may close these issues.

2 participants