summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0454.md
blob: 95a22b92e36eeffc106a78053b9986942347bff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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!
```