]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0458.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0458.stderr
1 error[E0458]: unknown kind: `wonderful_unicorn`
2   --> $DIR/E0458.rs:1:8
3    |
4 LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
5    | -------^^^^^^^^^^^^^^^^^^^^^^^^^^--
6    |        |
7    |        unknown kind
8
9 error[E0459]: `#[link(...)]` specified without `name = "foo"`
10   --> $DIR/E0458.rs:1:1
11    |
12 LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `name` argument
14
15 error: aborting due to 2 previous errors
16
17 Some errors have detailed explanations: E0458, E0459.
18 For more information about an error, try `rustc --explain E0458`.