fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: macro requires a cfg-pattern as an argument 2 --> $DIR/cfg.rs:2:5 3 | 4LL | 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 9error: expected identifier, found `123` 10 --> $DIR/cfg.rs:3:10 11 | 12LL | cfg!(123); 13 | ^^^ expected identifier 14 15error[E0565]: literal in `cfg` predicate value must be a string 16 --> $DIR/cfg.rs:4:16 17 | 18LL | cfg!(foo = 123); 19 | ^^^ 20 21error: expected 1 cfg-pattern 22 --> $DIR/cfg.rs:5:5 23 | 24LL | 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 29error: aborting due to 4 previous errors 30 31For more information about this error, try `rustc --explain E0565`.