rust/tests/rustdoc/doctest/doctest-cfg-feature-30252.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
207 B
Rust
Raw Normal View History

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