]> git.proxmox.com Git - rustc.git/blame - src/test/ui/test-cfg.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / test-cfg.rs
CommitLineData
223e47cc
LB
1// compile-flags: --cfg foo
2
1a4d82fc 3#[cfg(all(foo, bar))] // foo AND bar
223e47cc
LB
4fn foo() {}
5
6fn main() {
32a655c1 7 foo(); //~ ERROR cannot find function `foo` in this scope
223e47cc 8}