summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0459.md
blob: 4a49a7654452059ec5a6c64a32828f97337bd725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A link was used without a name parameter.

Erroneous code example:

```compile_fail,E0459
#[link(kind = "dylib")] extern "C" {}
// error: `#[link(...)]` specified without `name = "foo"`
```

Please add the name parameter to allow the rust compiler to find the library
you want. Example:

```no_run
#[link(kind = "dylib", name = "some_lib")] extern "C" {} // ok!
```