diff options
Diffstat (limited to 'compiler/rustc_error_codes/src/error_codes/E0454.md')
-rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0454.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0454.md b/compiler/rustc_error_codes/src/error_codes/E0454.md new file mode 100644 index 000000000..95a22b92e --- /dev/null +++ b/compiler/rustc_error_codes/src/error_codes/E0454.md @@ -0,0 +1,15 @@ +A link name was given with an empty name. + +Erroneous code example: + +```compile_fail,E0454 +#[link(name = "")] extern "C" {} +// error: `#[link(name = "")]` given with empty name +``` + +The rust compiler cannot link to an external library if you don't give it its +name. Example: + +```no_run +#[link(name = "some_lib")] extern "C" {} // ok! +``` |