aboutsummaryrefslogtreecommitdiff
path: root/examples/unsafe_unpin-expanded.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/unsafe_unpin-expanded.rs')
-rw-r--r--examples/unsafe_unpin-expanded.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/unsafe_unpin-expanded.rs b/examples/unsafe_unpin-expanded.rs
index 2ea1f37..e9c7abc 100644
--- a/examples/unsafe_unpin-expanded.rs
+++ b/examples/unsafe_unpin-expanded.rs
@@ -75,7 +75,7 @@ const _: () = {
//
// See ./struct-default-expanded.rs and https://github.com/taiki-e/pin-project/pull/34
// for details.
- #[forbid(safe_packed_borrows)]
+ #[forbid(unaligned_references, safe_packed_borrows)]
fn __assert_not_repr_packed<T, U>(this: &Struct<T, U>) {
let _ = &this.pinned;
let _ = &this.unpinned;