mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
8 lines
297 B
Rust
8 lines
297 B
Rust
fn main() {
|
|
cfg!(); //~ ERROR macro requires a cfg-pattern
|
|
cfg!(123); //~ ERROR malformed `cfg` macro input
|
|
cfg!(foo = 123); //~ ERROR malformed `cfg` macro input
|
|
cfg!(false, false); //~ ERROR expected 1 cfg-pattern
|
|
cfg!(foo); //~ WARN unexpected `cfg` condition name: `foo`
|
|
}
|