summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doc-test-attr-18199.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/rustdoc/doc-test-attr-18199.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc/doc-test-attr-18199.rs b/tests/rustdoc/doc-test-attr-18199.rs
new file mode 100644
index 000000000..c9d223532
--- /dev/null
+++ b/tests/rustdoc/doc-test-attr-18199.rs
@@ -0,0 +1,11 @@
+// compile-flags:--test
+// https://github.com/rust-lang/rust/issues/18199
+
+#![doc(test(attr(feature(staged_api))))]
+
+/// ```
+/// #![allow(internal_features)]
+/// #![unstable(feature="test", issue="18199")]
+/// fn main() {}
+/// ```
+pub fn foo() {}