diff --git a/Cargo.toml b/Cargo.toml index 4a5aea264c..eb37bb801a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,7 @@ authors = ["Jorge Aparicio ", rustc-serialize = "*" regex = "*" + +[[example]] +name = "attribute_cfg_custom" +path = "examples/attribute/cfg/custom/custom.rs" diff --git a/examples/attribute/cfg/custom/custom.rs b/examples/attribute/cfg/custom/custom.rs index 19ad641852..82518a1e6c 100644 --- a/examples/attribute/cfg/custom/custom.rs +++ b/examples/attribute/cfg/custom/custom.rs @@ -1,4 +1,4 @@ -#[cfg(some_condition)] +#[cfg(not(test))] fn conditional_function() { println!("condition met!") }