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