We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b930bb commit 5b91728Copy full SHA for 5b91728
futures-test/src/future/assert_unmoved.rs
@@ -19,8 +19,8 @@ pub struct AssertUnmoved<Fut> {
19
20
// Safety: having a raw pointer in a struct makes it `!Send`, however the
21
// pointer is never dereferenced so this is safe.
22
-unsafe impl<Fut: Sync + Send> Send for AssertUnmoved<Fut> {}
23
-unsafe impl<Fut: Sync + Send> Sync for AssertUnmoved<Fut> {}
+unsafe impl<Fut: Send> Send for AssertUnmoved<Fut> {}
+unsafe impl<Fut: Sync> Sync for AssertUnmoved<Fut> {}
24
25
impl<Fut> AssertUnmoved<Fut> {
26
unsafe_pinned!(future: Fut);
0 commit comments