aboutsummaryrefslogtreecommitdiff
path: root/tests/proper_unpin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/proper_unpin.rs')
-rw-r--r--tests/proper_unpin.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/proper_unpin.rs b/tests/proper_unpin.rs
index 8873572..0ba3ce3 100644
--- a/tests/proper_unpin.rs
+++ b/tests/proper_unpin.rs
@@ -5,9 +5,10 @@
mod auxiliary;
pub mod default {
- use pin_project::pin_project;
use std::marker::PhantomPinned;
+ use pin_project::pin_project;
+
struct Inner<T> {
f: T,
}
@@ -60,9 +61,10 @@ pub mod default {
}
pub mod cfg {
- use pin_project::pin_project;
use std::marker::PhantomPinned;
+ use pin_project::pin_project;
+
#[pin_project]
struct Foo<T> {
#[cfg(any())]
@@ -88,9 +90,10 @@ pub mod cfg {
}
pub mod cfg_attr {
- use pin_project::pin_project;
use std::marker::PhantomPinned;
+ use pin_project::pin_project;
+
#[cfg_attr(any(), pin_project)]
struct Foo<T> {
f: T,
@@ -111,9 +114,10 @@ pub mod cfg_attr {
// pin_project(!Unpin)
pub mod not_unpin {
- use pin_project::pin_project;
use std::marker::PhantomPinned;
+ use pin_project::pin_project;
+
struct Inner<T> {
f: T,
}