1 warning: missing documentation for the crate
4 LL | / #![feature(rustdoc_missing_doc_code_examples)]
10 LL | | pub fn foo() {}
13 note: the lint level is defined here
16 LL | #![warn(missing_docs)]
19 warning: missing documentation for a function
20 --> $DIR/check.rs:13:1
25 warning: no documentation found for this crate's top-level module
27 = help: The following guide may be of use:
28 https://doc.rust-lang.org/$CHANNEL/rustdoc/how-to-write-documentation.html
29 note: the lint level is defined here
30 --> $DIR/check.rs:11:9
32 LL | #![warn(rustdoc::all)]
34 = note: `#[warn(rustdoc::missing_crate_level_docs)]` implied by `#[warn(rustdoc::all)]`
36 warning: missing code example in this documentation
39 LL | / #![feature(rustdoc_missing_doc_code_examples)]
45 LL | | pub fn foo() {}
48 note: the lint level is defined here
49 --> $DIR/check.rs:10:9
51 LL | #![warn(rustdoc::missing_doc_code_examples)]
52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 warning: missing code example in this documentation
55 --> $DIR/check.rs:13:1
60 warning: 5 warnings emitted