fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
514 B21 linesraw
1error: macro requires a cfg-pattern as an argument
2  --> $DIR/cfg.rs:2:5
3   |
4LL |     cfg!();
5   |     ^^^^^^^ cfg-pattern required
6
7error: expected identifier, found `123`
8  --> $DIR/cfg.rs:3:10
9   |
10LL |     cfg!(123);
11   |          ^^^ expected identifier
12
13error[E0565]: literal in `cfg` predicate value must be a string
14  --> $DIR/cfg.rs:4:16
15   |
16LL |     cfg!(foo = 123);
17   |                ^^^
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0565`.