aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/not_unpin/impl-unsafe-unpin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/not_unpin/impl-unsafe-unpin.rs')
-rw-r--r--tests/ui/not_unpin/impl-unsafe-unpin.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/not_unpin/impl-unsafe-unpin.rs b/tests/ui/not_unpin/impl-unsafe-unpin.rs
index 625dc29..2c078c7 100644
--- a/tests/ui/not_unpin/impl-unsafe-unpin.rs
+++ b/tests/ui/not_unpin/impl-unsafe-unpin.rs
@@ -3,8 +3,8 @@ use pin_project::{pin_project, UnsafeUnpin};
#[pin_project(!Unpin)] //~ ERROR E0119
struct Foo<T, U> {
#[pin]
- future: T,
- field: U,
+ f1: T,
+ f2: U,
}
unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {}
@@ -12,8 +12,8 @@ unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {}
#[pin_project(!Unpin)] //~ ERROR E0119
struct Bar<T, U> {
#[pin]
- future: T,
- field: U,
+ f1: T,
+ f2: U,
}
unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {}
@@ -21,8 +21,8 @@ unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {}
#[pin_project(!Unpin)] //~ ERROR E0119
struct Baz<T, U> {
#[pin]
- future: T,
- field: U,
+ f1: T,
+ f2: U,
}
unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {}