]>
Commit | Line | Data |
---|---|---|
d9bb1a4e FG |
1 | A link was used without a name parameter. Erroneous code example: |
2 | ||
3 | ```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen) | |
4 | #[link(kind = "dylib")] extern {} | |
5 | // error: `#[link(...)]` specified without `name = "foo"` | |
6 | ``` | |
7 | ||
8 | Please add the name parameter to allow the rust compiler to find the library | |
9 | you want. Example: | |
10 | ||
11 | ```no_run | |
12 | #[link(kind = "dylib", name = "some_lib")] extern {} // ok! | |
13 | ``` |