aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unsupported_item.rs
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-06-01 20:07:16 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-06-01 20:07:16 +0000
commitc89a47375198fa255d792180bb95dabb268c803f (patch)
treec152abda73624cb4a77225f0682f01b33a76be30 /tests/ui/unsupported_item.rs
parenteef466dd058ab69a4edff26d5ba602918dc8b071 (diff)
parente423295327cdc6c1778fbaf3d37ab577ed7e01f6 (diff)
downloadlinkme-c89a47375198fa255d792180bb95dabb268c803f.tar.gz
Initial import am: 2970041c34 am: 59f583acb4 am: a1d0e5dd7b am: e423295327
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/linkme/+/2607228 Change-Id: I9c4761223455927c85e0408d7d7f40523cdb838f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tests/ui/unsupported_item.rs')
-rw-r--r--tests/ui/unsupported_item.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/unsupported_item.rs b/tests/ui/unsupported_item.rs
new file mode 100644
index 0000000..e218ce5
--- /dev/null
+++ b/tests/ui/unsupported_item.rs
@@ -0,0 +1,11 @@
+#![cfg_attr(feature = "used_linker", feature(used_with_arg))]
+
+use linkme::distributed_slice;
+
+#[distributed_slice]
+pub static SLICE: [&'static str] = [..];
+
+#[distributed_slice(SLICE)]
+extern crate std as _std;
+
+fn main() {}