Files
rust/tests/ui/attributes/doc-attr.rs
Guillaume Gomez 4936973d49 Fix ui tests
2025-12-10 12:28:05 +01:00

18 lines
412 B
Rust

#![crate_type = "lib"]
#![doc(as_ptr)]
//~^ ERROR unknown `doc` attribute
#[doc(as_ptr)]
//~^ ERROR unknown `doc` attribute
pub fn foo() {}
#[doc(123)]
//~^ ERROR malformed `doc` attribute
#[doc("hello", "bar")]
//~^ ERROR malformed `doc` attribute
//~| ERROR malformed `doc` attribute
#[doc(foo::bar, crate::bar::baz = "bye")]
//~^ ERROR unknown `doc` attribute
//~| ERROR unknown `doc` attribute
fn bar() {}