rust/tests/rustdoc/doc-test-attr-18199.rs

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

12 lines
248 B
Rust
Raw Normal View History

//@ compile-flags:--test
2023-09-28 08:22:18 +08:00
// https://github.com/rust-lang/rust/issues/18199
#![doc(test(attr(feature(staged_api))))]
/// ```
/// #![allow(internal_features)]
2015-11-17 00:54:28 +08:00
/// #![unstable(feature="test", issue="18199")]
/// fn main() {}
/// ```
pub fn foo() {}