mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
406 B
Rust
17 lines
406 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 invalid `doc` attribute
|
|
#[doc("hello", "bar")]
|
|
//~^ ERROR invalid `doc` attribute
|
|
//~| ERROR invalid `doc` attribute
|
|
#[doc(foo::bar, crate::bar::baz = "bye")]
|
|
//~^ ERROR unknown `doc` attribute
|
|
//~| ERROR unknown `doc` attribute
|
|
fn bar() {}
|