rust/tests/rustdoc-ui/lints/doc_cfg_hide.stderr
2026-02-05 11:36:45 -08:00

26 lines
724 B
Text

error: `#![doc(auto_cfg(hide(...)))]` expects a list of items
--> $DIR/doc_cfg_hide.rs:3:17
|
LL | #![doc(auto_cfg(hide = "test"))]
| ^^^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/doc_cfg_hide.rs:1:9
|
LL | #![deny(invalid_doc_attributes)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: `#![doc(auto_cfg(hide(...)))]` expects a list of items
--> $DIR/doc_cfg_hide.rs:4:17
|
LL | #![doc(auto_cfg(hide))]
| ^^^^
error: `#![doc(auto_cfg(hide(...)))]` only accepts identifiers or key/value items
--> $DIR/doc_cfg_hide.rs:5:22
|
LL | #![doc(auto_cfg(hide(not(windows))))]
| ^^^^^^^^^^^^
error: aborting due to 3 previous errors