]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0459.md
New upstream version 1.41.1+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0459.md
1 A link was used without a name parameter. Erroneous code example:
2
3 ```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
4 #[link(kind = "dylib")] extern {}
5 // error: `#[link(...)]` specified without `name = "foo"`
6 ```
7
8 Please add the name parameter to allow the rust compiler to find the library
9 you want. Example:
10
11 ```no_run
12 #[link(kind = "dylib", name = "some_lib")] extern {} // ok!
13 ```