2024-04-07 00:33:37 +02:00
|
|
|
//@ compile-flags: --cfg foo --check-cfg=cfg(foo,bar)
|
2013-03-19 13:00:10 -07:00
|
|
|
|
2014-09-24 20:22:57 -07:00
|
|
|
#[cfg(all(foo, bar))] // foo AND bar
|
2013-03-19 13:00:10 -07:00
|
|
|
fn foo() {}
|
|
|
|
|
|
|
|
fn main() {
|
2017-01-12 01:18:08 +03:00
|
|
|
foo(); //~ ERROR cannot find function `foo` in this scope
|
2013-03-19 13:00:10 -07:00
|
|
|
}
|