]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0454.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0454.md
1 A link name was given with an empty name.
2
3 Erroneous code example:
4
5 ```compile_fail,E0454
6 #[link(name = "")] extern "C" {}
7 // error: `#[link(name = "")]` given with empty name
8 ```
9
10 The rust compiler cannot link to an external library if you don't give it its
11 name. Example:
12
13 ```no_run
14 #[link(name = "some_lib")] extern "C" {} // ok!
15 ```