]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/cfg.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / macros / cfg.stderr
1 error: macro requires a cfg-pattern as an argument
2   --> $DIR/cfg.rs:2:5
3    |
4 LL |     cfg!();
5    |     ^^^^^^ cfg-pattern required
6    |
7    = note: this error originates in the macro `cfg` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: expected identifier, found `123`
10   --> $DIR/cfg.rs:3:10
11    |
12 LL |     cfg!(123);
13    |          ^^^ expected identifier
14
15 error[E0565]: literal in `cfg` predicate value must be a string
16   --> $DIR/cfg.rs:4:16
17    |
18 LL |     cfg!(foo = 123);
19    |                ^^^
20
21 error: expected 1 cfg-pattern
22   --> $DIR/cfg.rs:5:5
23    |
24 LL |     cfg!(foo, bar);
25    |     ^^^^^^^^^^^^^^
26    |
27    = note: this error originates in the macro `cfg` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error: aborting due to 4 previous errors
30
31 For more information about this error, try `rustc --explain E0565`.