aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/cfg/packed_sneaky-span-issue-2.rs
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-02-24 11:06:07 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-24 11:06:07 +0000
commit3e9a78f8a652042b466f19f7cfd9a72c7e6967c0 (patch)
treeaa583765ea0c0fd8bddb46d99bb04eae1334edd3 /tests/ui/cfg/packed_sneaky-span-issue-2.rs
parentc694fc9d044796eb31ecf3456938c2bdc860eee9 (diff)
parent60a03099d28e22afae51d4f99453c38ecb98a652 (diff)
downloadpin-project-3e9a78f8a652042b466f19f7cfd9a72c7e6967c0.tar.gz
Upgrade rust/crates/pin-project to 1.0.5 am: c1311073c0 am: 839279b456 am: 60a03099d2
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1581962 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifa1741fbe71f9eceb5b2e7262bd8258cea0ea6cf
Diffstat (limited to 'tests/ui/cfg/packed_sneaky-span-issue-2.rs')
-rw-r--r--tests/ui/cfg/packed_sneaky-span-issue-2.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/cfg/packed_sneaky-span-issue-2.rs b/tests/ui/cfg/packed_sneaky-span-issue-2.rs
index 01706ee..948d72c 100644
--- a/tests/ui/cfg/packed_sneaky-span-issue-2.rs
+++ b/tests/ui/cfg/packed_sneaky-span-issue-2.rs
@@ -1,12 +1,10 @@
use auxiliary_macro::hidden_repr;
use pin_project::pin_project;
-//~ ERROR may not be used on #[repr(packed)] types
-// span is lost.
-// Refs: https://github.com/rust-lang/rust/issues/43081
#[pin_project]
#[hidden_repr(packed)]
struct S {
+ //~^ ERROR may not be used on #[repr(packed)] types
#[cfg(any())]
#[pin]
f: u32,