mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
26 lines
497 B
Rust
26 lines
497 B
Rust
#![crate_type = "lib"]
|
|
#![deny(warnings)]
|
|
#![doc(as_ptr)]
|
|
//~^ ERROR unknown `doc` attribute
|
|
//~^^ WARN
|
|
|
|
#[doc(as_ptr)]
|
|
//~^ ERROR unknown `doc` attribute
|
|
//~^^ WARN
|
|
pub fn foo() {}
|
|
|
|
#[doc(123)]
|
|
//~^ ERROR invalid `doc` attribute
|
|
//~| WARN
|
|
#[doc("hello", "bar")]
|
|
//~^ ERROR invalid `doc` attribute
|
|
//~| WARN
|
|
//~| ERROR invalid `doc` attribute
|
|
//~| WARN
|
|
#[doc(foo::bar, crate::bar::baz = "bye")]
|
|
//~^ ERROR unknown `doc` attribute
|
|
//~| WARN
|
|
//~| ERROR unknown `doc` attribute
|
|
//~| WARN
|
|
fn bar() {}
|