summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-raw-dylib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-raw-dylib.rs')
-rw-r--r--src/test/ui/feature-gates/feature-gate-raw-dylib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib.rs b/src/test/ui/feature-gates/feature-gate-raw-dylib.rs
new file mode 100644
index 000000000..f894f517b
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-raw-dylib.rs
@@ -0,0 +1,6 @@
+// only-windows
+#[link(name = "foo", kind = "raw-dylib")]
+//~^ ERROR: link kind `raw-dylib` is unstable
+extern "C" {}
+
+fn main() {}