]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0454.md
New upstream version 1.43.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0454.md
1 A link name was given with an empty name. Erroneous code example:
2
3 ```compile_fail,E0454
4 #[link(name = "")] extern {}
5 // error: `#[link(name = "")]` given with empty name
6 ```
7
8 The rust compiler cannot link to an external library if you don't give it its
9 name. Example:
10
11 ```no_run
12 #[link(name = "some_lib")] extern {} // ok!
13 ```