rust/tests/ui/internal-lints/existing_doc_keyword.rs

12 lines
210 B
Rust
Raw Normal View History

// compile-flags: -Z unstable-options
#![feature(rustc_private)]
#![feature(rustdoc_internals)]
#![crate_type = "lib"]
#![deny(rustc::existing_doc_keyword)]
#[doc(keyword = "tadam")] //~ ERROR
mod tadam {}