rust/tests/rustdoc/doctest/doctest-cfg-feature-30252.rs
2023-11-23 14:56:03 -07:00

10 lines
206 B
Rust

// compile-flags:--test --cfg feature="bar"
// https://github.com/rust-lang/rust/issues/30252
#![crate_name="issue_30252"]
/// ```rust
/// assert_eq!(cfg!(feature = "bar"), true);
/// ```
pub fn foo() {}