summaryrefslogtreecommitdiffstats
path: root/src/test/ui/linkage-attr/link-attr-validation-late.stderr
blob: 1ad5fbaf7de8066f2f34d8a4828ada45e9b4b833 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
error: unexpected `#[link]` argument, expected one of: name, kind, modifiers, cfg, wasm_import_module, import_name_type
  --> $DIR/link-attr-validation-late.rs:4:22
   |
LL | #[link(name = "...", "literal")]
   |                      ^^^^^^^^^

error: unexpected `#[link]` argument, expected one of: name, kind, modifiers, cfg, wasm_import_module, import_name_type
  --> $DIR/link-attr-validation-late.rs:5:22
   |
LL | #[link(name = "...", unknown)]
   |                      ^^^^^^^

error: multiple `name` arguments in a single `#[link]` attribute
  --> $DIR/link-attr-validation-late.rs:9:22
   |
LL | #[link(name = "foo", name = "bar")]
   |                      ^^^^^^^^^^^^

error: multiple `kind` arguments in a single `#[link]` attribute
  --> $DIR/link-attr-validation-late.rs:10:38
   |
LL | #[link(name = "...", kind = "dylib", kind = "bar")]
   |                                      ^^^^^^^^^^^^

error: multiple `modifiers` arguments in a single `#[link]` attribute
  --> $DIR/link-attr-validation-late.rs:11:47
   |
LL | #[link(name = "...", modifiers = "+verbatim", modifiers = "bar")]
   |                                               ^^^^^^^^^^^^^^^^^

error: multiple `cfg` arguments in a single `#[link]` attribute
  --> $DIR/link-attr-validation-late.rs:12:34
   |
LL | #[link(name = "...", cfg(FALSE), cfg(FALSE))]
   |                                  ^^^^^^^^^^

error: multiple `wasm_import_module` arguments in a single `#[link]` attribute
  --> $DIR/link-attr-validation-late.rs:13:36
   |
LL | #[link(wasm_import_module = "foo", wasm_import_module = "bar")]
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: link name must be of the form `name = "string"`
  --> $DIR/link-attr-validation-late.rs:17:8
   |
LL | #[link(name)]
   |        ^^^^

error[E0459]: `#[link]` attribute requires a `name = "string"` argument
  --> $DIR/link-attr-validation-late.rs:17:1
   |
LL | #[link(name)]
   | ^^^^^^^^^^^^^ missing `name` argument

error: link name must be of the form `name = "string"`
  --> $DIR/link-attr-validation-late.rs:19:8
   |
LL | #[link(name())]
   |        ^^^^^^

error[E0459]: `#[link]` attribute requires a `name = "string"` argument
  --> $DIR/link-attr-validation-late.rs:19:1
   |
LL | #[link(name())]
   | ^^^^^^^^^^^^^^^ missing `name` argument

error: link kind must be of the form `kind = "string"`
  --> $DIR/link-attr-validation-late.rs:21:22
   |
LL | #[link(name = "...", kind)]
   |                      ^^^^

error: link kind must be of the form `kind = "string"`
  --> $DIR/link-attr-validation-late.rs:22:22
   |
LL | #[link(name = "...", kind())]
   |                      ^^^^^^

error: link modifiers must be of the form `modifiers = "string"`
  --> $DIR/link-attr-validation-late.rs:23:22
   |
LL | #[link(name = "...", modifiers)]
   |                      ^^^^^^^^^

error: link modifiers must be of the form `modifiers = "string"`
  --> $DIR/link-attr-validation-late.rs:24:22
   |
LL | #[link(name = "...", modifiers())]
   |                      ^^^^^^^^^^^

error: link cfg must be of the form `cfg(/* predicate */)`
  --> $DIR/link-attr-validation-late.rs:25:22
   |
LL | #[link(name = "...", cfg)]
   |                      ^^^

error: link cfg must be of the form `cfg(/* predicate */)`
  --> $DIR/link-attr-validation-late.rs:26:22
   |
LL | #[link(name = "...", cfg = "literal")]
   |                      ^^^^^^^^^^^^^^^

error: link cfg must have a single predicate argument
  --> $DIR/link-attr-validation-late.rs:27:22
   |
LL | #[link(name = "...", cfg("literal"))]
   |                      ^^^^^^^^^^^^^^

error: wasm import module must be of the form `wasm_import_module = "string"`
  --> $DIR/link-attr-validation-late.rs:28:22
   |
LL | #[link(name = "...", wasm_import_module)]
   |                      ^^^^^^^^^^^^^^^^^^

error: wasm import module must be of the form `wasm_import_module = "string"`
  --> $DIR/link-attr-validation-late.rs:29:22
   |
LL | #[link(name = "...", wasm_import_module())]
   |                      ^^^^^^^^^^^^^^^^^^^^

error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
  --> $DIR/link-attr-validation-late.rs:33:34
   |
LL | #[link(name = "...", modifiers = "")]
   |                                  ^^

error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
  --> $DIR/link-attr-validation-late.rs:34:34
   |
LL | #[link(name = "...", modifiers = "no-plus-minus")]
   |                                  ^^^^^^^^^^^^^^^

error: unknown linking modifier `unknown`, expected one of: bundle, verbatim, whole-archive, as-needed
  --> $DIR/link-attr-validation-late.rs:35:34
   |
LL | #[link(name = "...", modifiers = "+unknown")]
   |                                  ^^^^^^^^^^

error: multiple `verbatim` modifiers in a single `modifiers` argument
  --> $DIR/link-attr-validation-late.rs:36:34
   |
LL | #[link(name = "...", modifiers = "+verbatim,+verbatim")]
   |                                  ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 24 previous errors

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