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