Add negative impl test
This commit is contained in:
parent
96ee060529
commit
c40a8c1ecc
7
tests/source/negative-impl.rs
Normal file
7
tests/source/negative-impl.rs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
impl ! Display for JoinHandle { }
|
||||||
|
|
||||||
|
impl ! Box < JoinHandle > { }
|
||||||
|
|
||||||
|
impl ! std :: fmt :: Display for JoinHandle < T : std :: future :: Future + std :: marker :: Send + std :: marker :: Sync > { }
|
||||||
|
|
||||||
|
impl ! JoinHandle < T : std :: future :: Future < Output > + std :: marker :: Send + std :: marker :: Sync + 'static > + 'static { }
|
14
tests/target/negative-impl.rs
Normal file
14
tests/target/negative-impl.rs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
impl !Display for JoinHandle {}
|
||||||
|
|
||||||
|
impl !Box<JoinHandle> {}
|
||||||
|
|
||||||
|
impl !std::fmt::Display
|
||||||
|
for JoinHandle<T: std::future::Future + std::marker::Send + std::marker::Sync>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
impl
|
||||||
|
!JoinHandle<T: std::future::Future<Output> + std::marker::Send + std::marker::Sync + 'static>
|
||||||
|
+ 'static
|
||||||
|
{
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user