]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0454.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / 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 {}
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 {} // ok!
15 ```