1 error: this attribute can only be applied at the crate level
2 --> $DIR/doc_cfg_hide.rs:9:7
4 LL | #[doc(cfg_hide(doc))]
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
9 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
10 note: the lint level is defined here
11 --> $DIR/doc_cfg_hide.rs:2:9
13 LL | #![deny(warnings)]
15 = note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
16 help: to apply to the crate, use an inner attribute
18 LL | #![doc(cfg_hide(doc))]
19 | ~~~~~~~~~~~~~~~~~~~~~~
21 error: `#[doc(cfg_hide(...)]` takes a list of attributes
22 --> $DIR/doc_cfg_hide.rs:4:8
24 LL | #![doc(cfg_hide = "test")]
27 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
28 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
30 error: `#[doc(cfg_hide(...)]` takes a list of attributes
31 --> $DIR/doc_cfg_hide.rs:6:8
33 LL | #![doc(cfg_hide)]
36 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
37 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
39 error: aborting due to 3 previous errors