Apply same treatment to MISSING_DOC_CODE_EXAMPLES

This commit is contained in:
Guillaume Gomez 2020-10-08 18:20:00 +02:00
parent b31f5d05b1
commit 22465b35a6
3 changed files with 34 additions and 6 deletions

View file

@ -0,0 +1,20 @@
warning: missing documentation for a struct
--> $DIR/allow_missing_docs.rs:36:5
|
LL | pub struct Bar {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/allow_missing_docs.rs:35:12
|
LL | #[warn(missing_docs)]
| ^^^^^^^^^^^^
warning: missing documentation for a struct field
--> $DIR/allow_missing_docs.rs:37:9
|
LL | pub f: u32,
| ^^^^^^^^^^
warning: 2 warnings emitted