Files
rust/tests/rustdoc-json/doc_attribute.rs

16 lines
368 B
Rust

// Doc attributes (`#[doc(attribute = "...")]` should not be generated in rustdoc JSON output
// and this test ensures it.
#![feature(rustdoc_internals)]
#![no_std]
//@ !has "$.index[?(@.name=='repr')]"
#[doc(attribute = "repr")]
/// this is a test!
const _: () = ();
//@ !has "$.index[?(@.name=='forbid')]"
#[doc(attribute = "forbid")]
/// hello
const _: () = ();