summary refs log tree commit diff
path: root/src/test/ui/feature-gate-link_args.stderr
blob: 86a2818b34420f0368386637d5854622a4625af3 (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
error[E0658]: the `link_args` attribute is experimental and not portable across platforms, it is recommended to use `#[link(name = "foo")] instead (see issue #29596)
  --> $DIR/feature-gate-link_args.rs:22:1
   |
LL | #[link_args = "-l expected_use_case"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(link_args)] to the crate attributes to enable

error[E0658]: the `link_args` attribute is experimental and not portable across platforms, it is recommended to use `#[link(name = "foo")] instead (see issue #29596)
  --> $DIR/feature-gate-link_args.rs:26:1
   |
LL | #[link_args = "-l unexected_use_on_non_extern_item"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(link_args)] to the crate attributes to enable

error[E0658]: the `link_args` attribute is experimental and not portable across platforms, it is recommended to use `#[link(name = "foo")] instead (see issue #29596)
  --> $DIR/feature-gate-link_args.rs:19:1
   |
LL | #![link_args = "-l unexpected_use_as_inner_attr_on_mod"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(link_args)] to the crate attributes to enable

error: aborting due to 3 previous errors

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