aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/cfg/packed_sneaky-span-issue-1.rs
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-02-24 09:45:33 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-24 09:45:33 +0000
commit839279b45646240b2dae0119f58d63c1a385e726 (patch)
treeaa583765ea0c0fd8bddb46d99bb04eae1334edd3 /tests/ui/cfg/packed_sneaky-span-issue-1.rs
parent5d2e6582b1273c9656b2a32a5728dcac6bb72000 (diff)
parentc1311073c0eab8a9f0566dbe0753f80865912a01 (diff)
downloadpin-project-839279b45646240b2dae0119f58d63c1a385e726.tar.gz
Upgrade rust/crates/pin-project to 1.0.5 am: c1311073c0
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1581962 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5f4104ee1de259e93389f9f90dd3a88be5f817b3
Diffstat (limited to 'tests/ui/cfg/packed_sneaky-span-issue-1.rs')
-rw-r--r--tests/ui/cfg/packed_sneaky-span-issue-1.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/cfg/packed_sneaky-span-issue-1.rs b/tests/ui/cfg/packed_sneaky-span-issue-1.rs
index 8455d07..42f57b5 100644
--- a/tests/ui/cfg/packed_sneaky-span-issue-1.rs
+++ b/tests/ui/cfg/packed_sneaky-span-issue-1.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(not(any()))]
#[pin]
f: u32,