]> git.lizzy.rs Git - rust.git/blob - tests/ui/linkage-attr/link-attr-validation-early.stderr
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / linkage-attr / link-attr-validation-early.stderr
1 error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
2   --> $DIR/link-attr-validation-early.rs:2:1
3    |
4 LL | #[link]
5    | ^^^^^^^
6    |
7    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8    = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
9    = note: `#[deny(ill_formed_attribute_input)]` on by default
10
11 error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
12   --> $DIR/link-attr-validation-early.rs:4:1
13    |
14 LL | #[link = "foo"]
15    | ^^^^^^^^^^^^^^^
16    |
17    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18    = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
19
20 error: aborting due to 2 previous errors
21