Skip to content

Commit

Permalink
Make a whitelisted example runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdinger committed Jan 29, 2015
1 parent 00a2fe9 commit 3a0f174
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ authors = ["Jorge Aparicio <japaricious@gmail.com>",

rustc-serialize = "*"
regex = "*"

[[example]]
name = "attribute_cfg_custom"
path = "examples/attribute/cfg/custom/custom.rs"
2 changes: 1 addition & 1 deletion examples/attribute/cfg/custom/custom.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(some_condition)]
#[cfg(not(test))]
fn conditional_function() {
println!("condition met!")
}
Expand Down

0 comments on commit 3a0f174

Please sign in to comment.