File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ fn main() {
2
2
cfg ! ( ) ; //~ ERROR macro requires a cfg-pattern
3
3
cfg ! ( 123 ) ; //~ ERROR expected identifier
4
4
cfg ! ( foo = 123 ) ; //~ ERROR literal in `cfg` predicate value must be a string
5
+ cfg ! ( foo, bar) ; //~ ERROR expected 1 cfg-pattern
5
6
}
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ error[E0565]: literal in `cfg` predicate value must be a string
18
18
LL | cfg!(foo = 123);
19
19
| ^^^
20
20
21
- error: aborting due to 3 previous errors
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
22
30
23
31
For more information about this error, try `rustc --explain E0565`.
You can’t perform that action at this time.
0 commit comments