2021-03-01 16:13:06 +00:00
|
|
|
#![crate_type = "lib"]
|
2021-03-04 20:48:07 +00:00
|
|
|
#![deny(warnings)]
|
2021-03-02 14:42:32 +00:00
|
|
|
#![doc(as_ptr)]
|
|
|
|
//~^ ERROR unknown `doc` attribute
|
2021-03-04 20:48:07 +00:00
|
|
|
//~^^ WARN
|
2021-03-01 16:13:06 +00:00
|
|
|
|
2021-03-02 14:42:32 +00:00
|
|
|
#[doc(as_ptr)]
|
|
|
|
//~^ ERROR unknown `doc` attribute
|
2021-03-04 20:48:07 +00:00
|
|
|
//~^^ WARN
|
2021-03-01 16:13:06 +00:00
|
|
|
pub fn foo() {}
|
2021-03-14 00:36:38 +00:00
|
|
|
|
|
|
|
#[doc(123)]
|
2021-03-14 21:00:02 +00:00
|
|
|
//~^ ERROR invalid `doc` attribute
|
2021-03-14 00:36:38 +00:00
|
|
|
//~| WARN
|
|
|
|
#[doc("hello", "bar")]
|
2021-03-14 21:00:02 +00:00
|
|
|
//~^ ERROR invalid `doc` attribute
|
2021-03-14 00:36:38 +00:00
|
|
|
//~| WARN
|
2021-03-14 21:00:02 +00:00
|
|
|
//~| ERROR invalid `doc` attribute
|
2021-03-14 00:36:38 +00:00
|
|
|
//~| WARN
|
|
|
|
#[doc(foo::bar, crate::bar::baz = "bye")]
|
|
|
|
//~^ ERROR unknown `doc` attribute
|
|
|
|
//~| WARN
|
|
|
|
//~| ERROR unknown `doc` attribute
|
|
|
|
//~| WARN
|
|
|
|
fn bar() {}
|