summary refs log tree commit diff
path: root/src/test/ui/native-library-link-flags/modifiers-override.stderr
blob: 8644d2382d2ba915aca051b0265a69f4adccd24a (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
error: same modifier is used multiple times in a single `modifiers` argument
  --> $DIR/modifiers-override.rs:9:5
   |
LL |     modifiers = "+whole-archive,-whole-archive",
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: multiple `modifiers` arguments in a single `#[link]` attribute
  --> $DIR/modifiers-override.rs:6:1
   |
LL | / #[link(
LL | |     name = "bar",
LL | |     kind = "static",
LL | |     modifiers = "+whole-archive,-whole-archive",
LL | |
LL | |     modifiers = "+bundle"
LL | | )]
   | |__^

error: overriding linking modifiers from command line is not supported
  --> $DIR/modifiers-override.rs:13:1
   |
LL | extern "C" {}
   | ^^^^^^^^^^^^^

error: overriding linking modifiers from command line is not supported
  --> $DIR/modifiers-override.rs:13:1
   |
LL | extern "C" {}
   | ^^^^^^^^^^^^^

error: aborting due to 4 previous errors