about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doc-cfg-unstable.rs
blob: b77c3654497d2a33de560707f95a48ecebf106b4 (plain)
1
2
3
4
5
6
// #138113: rustdoc didn't gate unstable predicates inside `doc(cfg(..))`
#![feature(doc_cfg)]

// `cfg_version`
#[doc(cfg(sanitize = "thread"))] //~ ERROR `cfg(sanitize)` is experimental and subject to change
pub fn cfg_sanitize() {}