Add negative impl test

This commit is contained in:
David Tolnay 2020-11-30 19:21:11 -08:00 committed by Caleb Cartwright
parent 96ee060529
commit c40a8c1ecc
2 changed files with 21 additions and 0 deletions

View 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 { }

View 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
{
}