fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
729 B24 linesraw
1error[E0459]: `#[link(...)]` specified without `name = "foo"`
2  --> $DIR/bad-extern-link-attrs.rs:1:1
3   |
4LL | #[link()]
5   | ^^^^^^^^^ missing `name` argument
6
7error[E0454]: `#[link(name = "")]` given with empty name
8  --> $DIR/bad-extern-link-attrs.rs:2:1
9   |
10LL | #[link(name = "")]
11   | ^^^^^^^^^^^^^^^^^^ empty name given
12
13error[E0458]: unknown kind: `bar`
14  --> $DIR/bad-extern-link-attrs.rs:4:22
15   |
16LL | #[link(name = "foo", kind = "bar")]
17   | ---------------------^^^^^^^^^^^^--
18   |                      |
19   |                      unknown kind
20
21error: aborting due to 3 previous errors
22
23Some errors have detailed explanations: E0454, E0458, E0459.
24For more information about an error, try `rustc --explain E0454`.