summaryrefslogtreecommitdiffstats
path: root/src/test/ui/native-library-link-flags/suggest-libname-only-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/native-library-link-flags/suggest-libname-only-2.rs')
-rw-r--r--src/test/ui/native-library-link-flags/suggest-libname-only-2.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/native-library-link-flags/suggest-libname-only-2.rs b/src/test/ui/native-library-link-flags/suggest-libname-only-2.rs
new file mode 100644
index 000000000..dfa70e56d
--- /dev/null
+++ b/src/test/ui/native-library-link-flags/suggest-libname-only-2.rs
@@ -0,0 +1,9 @@
+// build-fail
+// compile-flags: --crate-type rlib
+// error-pattern: could not find native static library `bar.lib`
+// error-pattern: only provide the library name `bar`, not the full filename
+
+#[link(name = "bar.lib", kind = "static")]
+extern { }
+
+pub fn main() { }