summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0458.stderr
blob: e641bba541ee0249f6e9041db506fa3f7eedb87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0458]: unknown link kind `wonderful_unicorn`, expected one of: static, dylib, framework, raw-dylib
  --> $DIR/E0458.rs:1:15
   |
LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
   |               ^^^^^^^^^^^^^^^^^^^ unknown link kind

error[E0459]: `#[link]` attribute requires a `name = "string"` argument
  --> $DIR/E0458.rs:1:1
   |
LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `name` argument

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0458, E0459.
For more information about an error, try `rustc --explain E0458`.