blob: 60c215222d7f28d2958e7d6e10aff913f047384b [file] [edit]
#![deny(invalid_doc_attributes)]
#![crate_type = "lib"]
#![feature(doc_masked)]
#![doc(masked)]
//~^ ERROR this attribute can only be applied to an `extern crate` item
#[doc(inline)]
//~^ ERROR can only be applied to a `use` item
pub fn foo() {}
pub mod bar {
#[doc(inline)]
//~^ ERROR can only be applied to a `use` item
pub fn baz() {}
}
#[doc(inline)]
#[doc(no_inline)]
//~^^ ERROR conflicting doc inlining attributes
//~| HELP remove one of the conflicting attributes
pub use bar::baz;
#[doc(masked)]
//~^ ERROR this attribute can only be applied to an `extern crate` item
pub struct Masked;
#[doc(masked)]
//~^ ERROR this attribute cannot be applied to an `extern crate self` item
pub extern crate self as reexport;