blob: 169d092d7e1753de03ac633b8d7e667004f1ba3e [file] [log] [blame] [edit]
#![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;