summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs')
-rw-r--r--src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs b/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs
new file mode 100644
index 000000000..518aa20dd
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs
@@ -0,0 +1,8 @@
+#[link(name = "foo")]
+extern "C" {
+ #[link_ordinal(42)]
+ //~^ ERROR: the `#[link_ordinal]` attribute is an experimental feature
+ fn foo();
+}
+
+fn main() {}