]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0459.md
Rollup merge of #103842 - andrewpollack:add-fuchsia-test-script, r=tmandry
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0459.md
1 A link was used without a name parameter.
2
3 Erroneous code example:
4
5 ```compile_fail,E0459
6 #[link(kind = "dylib")] extern "C" {}
7 // error: `#[link(...)]` specified without `name = "foo"`
8 ```
9
10 Please add the name parameter to allow the rust compiler to find the library
11 you want. Example:
12
13 ```no_run
14 #[link(kind = "dylib", name = "some_lib")] extern "C" {} // ok!
15 ```