]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0459.md
New upstream version 1.42.0+dfsg0+pve1
[rustc.git] / src / librustc_error_codes / error_codes / E0459.md
CommitLineData
d9bb1a4e
FG
1A 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
8Please add the name parameter to allow the rust compiler to find the library
9you want. Example:
10
11```no_run
12#[link(kind = "dylib", name = "some_lib")] extern {} // ok!
13```