about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/doc/doc_include_without_cfg.stderr
blob: 24991df581e81da69c69ac2e7faee83041af542b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
  --> tests/ui/doc/doc_include_without_cfg.rs:32:1
   |
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