aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/pub/struct.expanded.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/pub/struct.expanded.rs')
-rw-r--r--tests/expand/pub/struct.expanded.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expand/pub/struct.expanded.rs b/tests/expand/pub/struct.expanded.rs
index 246d9b6..7e6b975 100644
--- a/tests/expand/pub/struct.expanded.rs
+++ b/tests/expand/pub/struct.expanded.rs
@@ -77,7 +77,7 @@ const _: () = {
}
}
}
- #[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;