rust/tests/ui/error-codes/E0458.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
633 B
Plaintext
Raw Normal View History

error[E0458]: unknown link kind `wonderful_unicorn`, expected one of: static, dylib, framework, raw-dylib
--> $DIR/E0458.rs:1:15
2018-02-07 21:35:35 -06:00
|
2020-09-01 16:12:52 -05:00
LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
| ^^^^^^^^^^^^^^^^^^^ unknown link kind
2018-02-07 21:35:35 -06:00
error[E0459]: `#[link]` attribute requires a `name = "string"` argument
2018-12-25 09:56:47 -06:00
--> $DIR/E0458.rs:1:1
2018-02-07 21:35:35 -06:00
|
2020-09-01 16:12:52 -05:00
LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `name` argument
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0458, E0459.
2018-03-03 08:59:40 -06:00
For more information about an error, try `rustc --explain E0458`.