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

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

10 lines
206 B
Rust
Raw Normal View History

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