mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
19 lines
432 B
Rust
19 lines
432 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')]"
|
|
//@ has "$.index[?(@.name=='foo')]"
|
|
|
|
#[doc(attribute = "repr")]
|
|
/// this is a test!
|
|
pub mod foo {}
|
|
|
|
//@ !has "$.index[?(@.name=='forbid')]"
|
|
//@ !has "$.index[?(@.name=='bar')]"
|
|
#[doc(attribute = "forbid")]
|
|
/// hello
|
|
mod bar {}
|