2024-10-29 17:53:40 +01:00
|
|
|
error: included a file in documentation unconditionally
|
|
|
|
|
--> tests/ui/doc/doc_include_without_cfg.rs:4:1
|
|
|
|
|
|
|
|
|
|
|
LL | #![doc = include_str!("../approx_const.rs")]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `cfg_attr(doc, doc = "...")`: `#![cfg_attr(doc, doc = include_str!("../approx_const.rs"))]`
|
|
|
|
|
|
|
|
|
|
|
= note: `-D clippy::doc-include-without-cfg` implied by `-D warnings`
|
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::doc_include_without_cfg)]`
|
|
|
|
|
|
|
|
|
|
error: included a file in documentation unconditionally
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/doc/doc_include_without_cfg.rs:32:1
|
2024-10-29 17:53:40 +01:00
|
|
|
|
|
|
|
|
|
LL | #[doc = include_str!("../approx_const.rs")]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `cfg_attr(doc, doc = "...")`: `#[cfg_attr(doc, doc = include_str!("../approx_const.rs"))]`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|