about summary refs log tree commit diff
path: root/tests/ui/cfg/crate-attributes-using-cfg_attr.stderr
blob: 1dfca2b88d0e574cc4989cda070c1157ba602612 (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
error: `crate_type` within an `#![cfg_attr]` attribute is forbidden
  --> $DIR/crate-attributes-using-cfg_attr.rs:4:18
   |
LL | #![cfg_attr(foo, crate_type="bin")]
   |                  ^^^^^^^^^^^^^^^^

error: `crate_name` within an `#![cfg_attr]` attribute is forbidden
  --> $DIR/crate-attributes-using-cfg_attr.rs:7:18
   |
LL | #![cfg_attr(foo, crate_name="bar")]
   |                  ^^^^^^^^^^^^^^^^

error: `crate_type` within an `#![cfg_attr]` attribute is forbidden
  --> $DIR/crate-attributes-using-cfg_attr.rs:4:18
   |
LL | #![cfg_attr(foo, crate_type="bin")]
   |                  ^^^^^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: `crate_name` within an `#![cfg_attr]` attribute is forbidden
  --> $DIR/crate-attributes-using-cfg_attr.rs:7:18
   |
LL | #![cfg_attr(foo, crate_name="bar")]
   |                  ^^^^^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 4 previous errors