]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0454.md
Auto merge of #66396 - smmalis37:pythontest, r=alexcrichton
[rust.git] / src / librustc_error_codes / error_codes / E0454.md
1 A link name was given with an empty name. Erroneous code example:
2
3 ```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
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 ```