summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/invalid-cfg.stderr
blob: dae238b052b8a75331cf770f635a7a0c2f302f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: `cfg` is not followed by parentheses
  --> $DIR/invalid-cfg.rs:2:7
   |
LL | #[doc(cfg = "x")]
   |       ^^^^^^^^^ help: expected syntax is: `cfg(/* predicate */)`

error: multiple `cfg` predicates are specified
  --> $DIR/invalid-cfg.rs:3:14
   |
LL | #[doc(cfg(x, y))]
   |              ^

error: aborting due to 2 previous errors