aboutsummaryrefslogtreecommitdiff
path: root/tests/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.rs')
-rw-r--r--tests/test.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test.rs b/tests/test.rs
index ed9b75c..d128930 100644
--- a/tests/test.rs
+++ b/tests/test.rs
@@ -616,6 +616,7 @@ fn attrs() {
pin_project! {
/// dox1
#[derive(Clone)]
+ #[project(!Unpin)]
#[project = Enum2Proj]
#[project_ref = Enum2ProjRef]
/// dox2
@@ -682,11 +683,13 @@ fn pinned_drop() {
req: Request,
}
+ /// dox1
impl<T, Request> PinnedDrop for Struct3<'_, T, Request>
where
T: Service<Request>,
T::Error: std::error::Error,
{
+ /// dox2
fn drop(mut this: Pin<&mut Self>) {
**this.as_mut().project().was_dropped = true;
}