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