rust/tests/rustdoc-ui/invalid-attribute.rs
2025-08-28 15:56:30 +02:00

11 lines
241 B
Rust

// Testing the output when an invalid builtin attribute is passed as value
// to `doc(attribute = "...")`.
#![feature(rustdoc_internals)]
#[doc(attribute = "foo df")] //~ ERROR
mod foo {}
#[doc(attribute = "fooyi")] //~ ERROR
mod foo2 {}