Skip to content

Commit c40a8c1

Browse files
dtolnaycalebcartwright
authored andcommitted
Add negative impl test
1 parent 96ee060 commit c40a8c1

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

tests/source/negative-impl.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
impl ! Display for JoinHandle { }
2+
3+
impl ! Box < JoinHandle > { }
4+
5+
impl ! std :: fmt :: Display for JoinHandle < T : std :: future :: Future + std :: marker :: Send + std :: marker :: Sync > { }
6+
7+
impl ! JoinHandle < T : std :: future :: Future < Output > + std :: marker :: Send + std :: marker :: Sync + 'static > + 'static { }

tests/target/negative-impl.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
impl !Display for JoinHandle {}
2+
3+
impl !Box<JoinHandle> {}
4+
5+
impl !std::fmt::Display
6+
for JoinHandle<T: std::future::Future + std::marker::Send + std::marker::Sync>
7+
{
8+
}
9+
10+
impl
11+
!JoinHandle<T: std::future::Future<Output> + std::marker::Send + std::marker::Sync + 'static>
12+
+ 'static
13+
{
14+
}

0 commit comments

Comments
 (0)