mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 20:12:58 +01:00
fix impl assertion tests
This commit is contained in:
parent
eb490a9125
commit
705b31230f
@ -106,12 +106,13 @@ mod tests {
|
|||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
use futures_util::task::noop_waker;
|
use futures_util::task::noop_waker;
|
||||||
use static_assertions::{assert_impl_all, assert_not_impl_all};
|
use static_assertions::{assert_impl_all, assert_not_impl_any};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
assert_impl_all!(Ready<()>: Send, Sync, Clone);
|
assert_impl_all!(Ready<()>: Send, Sync, Unpin, Clone);
|
||||||
assert_not_impl_all!(Ready<Rc<()>>: Send, Sync);
|
assert_impl_all!(Ready<Rc<()>>: Unpin, Clone);
|
||||||
|
assert_not_impl_any!(Ready<Rc<()>>: Send, Sync);
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic]
|
#[should_panic]
|
||||||
|
Loading…
Reference in New Issue
Block a user