rust/src/test/rustdoc-ui/doc-attr.rs

12 lines
322 B
Rust
Raw Normal View History

2021-03-01 17:13:06 +01:00
#![crate_type = "lib"]
#![deny(unused_attributes)]
//~^ NOTE lint level is defined here
#![doc(as_ptr)]
//~^ ERROR unknown `doc` attribute
//~| WARNING will become a hard error in a future release
2021-03-01 17:13:06 +01:00
#[doc(as_ptr)]
//~^ ERROR unknown `doc` attribute
//~| WARNING will become a hard error in a future release
2021-03-01 17:13:06 +01:00
pub fn foo() {}