about summary refs log tree commit diff
path: root/tests/ui/extern/issue-47725.stderr
blob: 27da18df37cda560f2210883d6ee99c0754cab58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error[E0539]: malformed `link_name` attribute input
  --> $DIR/issue-47725.rs:19:1
   |
LL | #[link_name]
   | ^^^^^^^^^^^^ help: must be of the form: `#[link_name = "name"]`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link_name-attribute>

warning: `#[link_name]` attribute cannot be used on structs
  --> $DIR/issue-47725.rs:3:1
   |
LL | #[link_name = "foo"]
   | ^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[link_name]` can be applied to foreign functions and foreign statics
note: the lint level is defined here
  --> $DIR/issue-47725.rs:1:9
   |
LL | #![warn(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^

warning: `#[link_name]` attribute cannot be used on foreign modules
  --> $DIR/issue-47725.rs:10:1
   |
LL | #[link_name = "foobar"]
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[link_name]` can be applied to foreign functions and foreign statics

warning: `#[link_name]` attribute cannot be used on foreign modules
  --> $DIR/issue-47725.rs:19:1
   |
LL | #[link_name]
   | ^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[link_name]` can be applied to foreign functions and foreign statics

error: aborting due to 1 previous error; 3 warnings emitted

For more information about this error, try `rustc --explain E0539`.