rust/tests/ui/rustdoc/deny-invalid-doc-attrs.rs

8 lines
184 B
Rust
Raw Normal View History

2021-05-19 22:13:26 -05:00
#![deny(invalid_doc_attributes)]
//~^ NOTE defined here
#![doc(x)]
//~^ ERROR unknown `doc` attribute `x`
//~| WARNING will become a hard error
//~| NOTE see issue #82730
fn main() {}