]> git.lizzy.rs Git - rust.git/blob - src/test/ui/native-library-link-flags/suggest-libname-only-1.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / native-library-link-flags / suggest-libname-only-1.rs
1 // build-fail
2 // compile-flags: --crate-type rlib
3 // error-pattern: could not find native static library `libfoo.a`
4 // error-pattern: only provide the library name `foo`, not the full filename
5
6 #[link(name = "libfoo.a", kind = "static")]
7 extern { }
8
9 pub fn main() { }