about summary refs log tree commit diff
path: root/tests/ui/cfg/cfg-target-compact-errors.stderr
blob: cf61f94278a0bff32084fe187fe868c7af64fba8 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
error[E0539]: malformed `cfg` attribute input
  --> $DIR/cfg-target-compact-errors.rs:5:1
   |
LL | #[cfg(target(o::o))]
   | ^^^^^^^^^^^^^----^^^
   | |            |
   | |            expected this to be of the form `... = "..."`
   | help: must be of the form: `#[cfg(predicate)]`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>

error[E0539]: malformed `cfg` attribute input
  --> $DIR/cfg-target-compact-errors.rs:9:1
   |
LL | #[cfg(target(os = 8))]
   | ^^^^^^^^^^^^^^^^^^-^^^
   | |                 |
   | |                 expected a string literal here
   | help: must be of the form: `#[cfg(predicate)]`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>

error[E0539]: malformed `cfg` attribute input
  --> $DIR/cfg-target-compact-errors.rs:13:1
   |
LL | #[cfg(target(os = "linux", pointer(width = "64")))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------^^^
   | |                          |
   | |                          expected this to be of the form `... = "..."`
   | help: must be of the form: `#[cfg(predicate)]`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>

error[E0539]: malformed `cfg` attribute input
  --> $DIR/cfg-target-compact-errors.rs:17:1
   |
LL | #[cfg(target(true))]
   | ^^^^^^^^^^^^^----^^^
   | |            |
   | |            expected this to be of the form `... = "..."`
   | help: must be of the form: `#[cfg(predicate)]`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>

error: `cfg` predicate key must be an identifier
  --> $DIR/cfg-target-compact-errors.rs:21:14
   |
LL | #[cfg(target(clippy::os = "linux"))]
   |              ^^^^^^^^^^

error: aborting due to 5 previous errors

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