about summary refs log tree commit diff
path: root/tests/ui/rust-2018/removing-extern-crate-malformed-cfg.stderr
blob: 632ecd62322130f3972d3862029a097090eb7c0a (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
error: expected identifier, found `"macro_use"`
  --> $DIR/removing-extern-crate-malformed-cfg.rs:7:18
   |
LL | #[cfg_attr(test, "macro_use")]
   |                  ^^^^^^^^^^^ expected identifier
   |
   = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
   = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>

error: expected one of `(`, `,`, `::`, or `=`, found `<eof>`
  --> $DIR/removing-extern-crate-malformed-cfg.rs:12:16
   |
LL |     #[cfg_attr(test)]
   |                ^^^^ expected one of `(`, `,`, `::`, or `=`
   |
   = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
   = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>

warning: unused extern crate
  --> $DIR/removing-extern-crate-malformed-cfg.rs:8:1
   |
LL | extern crate remove_extern_crate as foo;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unused
   |
note: the lint level is defined here
  --> $DIR/removing-extern-crate-malformed-cfg.rs:5:9
   |
LL | #![warn(rust_2018_idioms)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(unused_extern_crates)]` implied by `#[warn(rust_2018_idioms)]`
help: remove the unused `extern crate`
   |
LL - #[cfg_attr(test, "macro_use")]
LL - extern crate remove_extern_crate as foo;
LL +
   |

warning: unused extern crate
  --> $DIR/removing-extern-crate-malformed-cfg.rs:9:1
   |
LL | extern crate core;
   | ^^^^^^^^^^^^^^^^^^ unused
   |
help: remove the unused `extern crate`
   |
LL - extern crate core;
LL +
   |

warning: unused extern crate
  --> $DIR/removing-extern-crate-malformed-cfg.rs:13:5
   |
LL |     extern crate remove_extern_crate as foo;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unused
   |
help: remove the unused `extern crate`
   |
LL -     #[cfg_attr(test)]
LL -     extern crate remove_extern_crate as foo;
LL +
   |

warning: unused extern crate
  --> $DIR/removing-extern-crate-malformed-cfg.rs:14:5
   |
LL |     extern crate core;
   |     ^^^^^^^^^^^^^^^^^^ unused
   |
help: remove the unused `extern crate`
   |
LL -     extern crate core;
LL +
   |

error: aborting due to 2 previous errors; 4 warnings emitted