]> git.lizzy.rs Git - rust.git/blob - tests/ui/linkage-attr/link-attr-validation-late.stderr
Auto merge of #107529 - Zoxc:inline-tweak-profile, r=cjgillot
[rust.git] / tests / ui / linkage-attr / link-attr-validation-late.stderr
1 error: unexpected `#[link]` argument, expected one of: name, kind, modifiers, cfg, wasm_import_module, import_name_type
2   --> $DIR/link-attr-validation-late.rs:4:22
3    |
4 LL | #[link(name = "...", "literal")]
5    |                      ^^^^^^^^^
6
7 error: unexpected `#[link]` argument, expected one of: name, kind, modifiers, cfg, wasm_import_module, import_name_type
8   --> $DIR/link-attr-validation-late.rs:5:22
9    |
10 LL | #[link(name = "...", unknown)]
11    |                      ^^^^^^^
12
13 error: multiple `name` arguments in a single `#[link]` attribute
14   --> $DIR/link-attr-validation-late.rs:9:22
15    |
16 LL | #[link(name = "foo", name = "bar")]
17    |                      ^^^^^^^^^^^^
18
19 error: multiple `kind` arguments in a single `#[link]` attribute
20   --> $DIR/link-attr-validation-late.rs:10:38
21    |
22 LL | #[link(name = "...", kind = "dylib", kind = "bar")]
23    |                                      ^^^^^^^^^^^^
24
25 error: multiple `modifiers` arguments in a single `#[link]` attribute
26   --> $DIR/link-attr-validation-late.rs:11:47
27    |
28 LL | #[link(name = "...", modifiers = "+verbatim", modifiers = "bar")]
29    |                                               ^^^^^^^^^^^^^^^^^
30
31 error: multiple `cfg` arguments in a single `#[link]` attribute
32   --> $DIR/link-attr-validation-late.rs:12:34
33    |
34 LL | #[link(name = "...", cfg(FALSE), cfg(FALSE))]
35    |                                  ^^^^^^^^^^
36
37 error: multiple `wasm_import_module` arguments in a single `#[link]` attribute
38   --> $DIR/link-attr-validation-late.rs:13:36
39    |
40 LL | #[link(wasm_import_module = "foo", wasm_import_module = "bar")]
41    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43 error: link name must be of the form `name = "string"`
44   --> $DIR/link-attr-validation-late.rs:17:8
45    |
46 LL | #[link(name)]
47    |        ^^^^
48
49 error[E0459]: `#[link]` attribute requires a `name = "string"` argument
50   --> $DIR/link-attr-validation-late.rs:17:1
51    |
52 LL | #[link(name)]
53    | ^^^^^^^^^^^^^ missing `name` argument
54
55 error: link name must be of the form `name = "string"`
56   --> $DIR/link-attr-validation-late.rs:19:8
57    |
58 LL | #[link(name())]
59    |        ^^^^^^
60
61 error[E0459]: `#[link]` attribute requires a `name = "string"` argument
62   --> $DIR/link-attr-validation-late.rs:19:1
63    |
64 LL | #[link(name())]
65    | ^^^^^^^^^^^^^^^ missing `name` argument
66
67 error: link kind must be of the form `kind = "string"`
68   --> $DIR/link-attr-validation-late.rs:21:22
69    |
70 LL | #[link(name = "...", kind)]
71    |                      ^^^^
72
73 error: link kind must be of the form `kind = "string"`
74   --> $DIR/link-attr-validation-late.rs:22:22
75    |
76 LL | #[link(name = "...", kind())]
77    |                      ^^^^^^
78
79 error: link modifiers must be of the form `modifiers = "string"`
80   --> $DIR/link-attr-validation-late.rs:23:22
81    |
82 LL | #[link(name = "...", modifiers)]
83    |                      ^^^^^^^^^
84
85 error: link modifiers must be of the form `modifiers = "string"`
86   --> $DIR/link-attr-validation-late.rs:24:22
87    |
88 LL | #[link(name = "...", modifiers())]
89    |                      ^^^^^^^^^^^
90
91 error: link cfg must be of the form `cfg(/* predicate */)`
92   --> $DIR/link-attr-validation-late.rs:25:22
93    |
94 LL | #[link(name = "...", cfg)]
95    |                      ^^^
96
97 error: link cfg must be of the form `cfg(/* predicate */)`
98   --> $DIR/link-attr-validation-late.rs:26:22
99    |
100 LL | #[link(name = "...", cfg = "literal")]
101    |                      ^^^^^^^^^^^^^^^
102
103 error: link cfg must have a single predicate argument
104   --> $DIR/link-attr-validation-late.rs:27:22
105    |
106 LL | #[link(name = "...", cfg("literal"))]
107    |                      ^^^^^^^^^^^^^^
108
109 error: wasm import module must be of the form `wasm_import_module = "string"`
110   --> $DIR/link-attr-validation-late.rs:28:22
111    |
112 LL | #[link(name = "...", wasm_import_module)]
113    |                      ^^^^^^^^^^^^^^^^^^
114
115 error: wasm import module must be of the form `wasm_import_module = "string"`
116   --> $DIR/link-attr-validation-late.rs:29:22
117    |
118 LL | #[link(name = "...", wasm_import_module())]
119    |                      ^^^^^^^^^^^^^^^^^^^^
120
121 error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
122   --> $DIR/link-attr-validation-late.rs:33:34
123    |
124 LL | #[link(name = "...", modifiers = "")]
125    |                                  ^^
126
127 error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
128   --> $DIR/link-attr-validation-late.rs:34:34
129    |
130 LL | #[link(name = "...", modifiers = "no-plus-minus")]
131    |                                  ^^^^^^^^^^^^^^^
132
133 error: unknown linking modifier `unknown`, expected one of: bundle, verbatim, whole-archive, as-needed
134   --> $DIR/link-attr-validation-late.rs:35:34
135    |
136 LL | #[link(name = "...", modifiers = "+unknown")]
137    |                                  ^^^^^^^^^^
138
139 error: multiple `verbatim` modifiers in a single `modifiers` argument
140   --> $DIR/link-attr-validation-late.rs:36:34
141    |
142 LL | #[link(name = "...", modifiers = "+verbatim,+verbatim")]
143    |                                  ^^^^^^^^^^^^^^^^^^^^^
144
145 error: aborting due to 24 previous errors
146
147 For more information about this error, try `rustc --explain E0459`.