]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/test-cfg.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / ui / conditional-compilation / test-cfg.rs
1 // compile-flags: --cfg foo
2
3 #[cfg(all(foo, bar))] // foo AND bar
4 fn foo() {}
5
6 fn main() {
7     foo(); //~ ERROR cannot find function `foo` in this scope
8 }