]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-47725.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-47725.stderr
1 error: malformed `link_name` attribute input
2 --> $DIR/issue-47725.rs:18:1
3 |
4 LL | #[link_name]
5 | ^^^^^^^^^^^^ help: must be of the form: `#[link_name = "name"]`
6
7 warning: attribute should be applied to a foreign function or static
8 --> $DIR/issue-47725.rs:4:1
9 |
10 LL | #[link_name = "foo"]
11 | ^^^^^^^^^^^^^^^^^^^^
12 ...
13 LL | struct Foo;
14 | ----------- not a foreign function or static
15 |
16 note: the lint level is defined here
17 --> $DIR/issue-47725.rs:2:9
18 |
19 LL | #![warn(unused_attributes)]
20 | ^^^^^^^^^^^^^^^^^
21 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22
23 warning: attribute should be applied to a foreign function or static
24 --> $DIR/issue-47725.rs:9:1
25 |
26 LL | #[link_name = "foobar"]
27 | ^^^^^^^^^^^^^^^^^^^^^^^
28 ...
29 LL | / extern "C" {
30 LL | | fn foo() -> u32;
31 LL | | }
32 | |_- not a foreign function or static
33 |
34 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
35 help: try `#[link(name = "foobar")]` instead
36 --> $DIR/issue-47725.rs:9:1
37 |
38 LL | #[link_name = "foobar"]
39 | ^^^^^^^^^^^^^^^^^^^^^^^
40
41 warning: attribute should be applied to a foreign function or static
42 --> $DIR/issue-47725.rs:18:1
43 |
44 LL | #[link_name]
45 | ^^^^^^^^^^^^
46 ...
47 LL | / extern "C" {
48 LL | | fn bar() -> u32;
49 LL | | }
50 | |_- not a foreign function or static
51 |
52 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
53 help: try `#[link(name = "...")]` instead
54 --> $DIR/issue-47725.rs:18:1
55 |
56 LL | #[link_name]
57 | ^^^^^^^^^^^^
58
59 error: aborting due to previous error; 3 warnings emitted
60