File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ // compile-flags: -Z unstable-options --check
2
+
3
+ #![ deny( missing_docs) ]
4
+
5
+ //! crate level doc
6
+
7
+ /// Enum doc.
8
+ pub enum Foo {
9
+ /// Variant doc.
10
+ Foo ( String ) ,
11
+ /// Variant Doc.
12
+ Bar ( String , u32 ) ,
13
+ //~^ ERROR
14
+ //~^^ ERROR
15
+ }
Original file line number Diff line number Diff line change
1
+ error: missing documentation for a struct field
2
+ --> $DIR/missing-doc-tuple-variant.rs:12:9
3
+ |
4
+ LL | Bar(String, u32),
5
+ | ^^^^^^
6
+ |
7
+ note: the lint level is defined here
8
+ --> $DIR/missing-doc-tuple-variant.rs:3:9
9
+ |
10
+ LL | #![deny(missing_docs)]
11
+ | ^^^^^^^^^^^^
12
+
13
+ error: missing documentation for a struct field
14
+ --> $DIR/missing-doc-tuple-variant.rs:12:17
15
+ |
16
+ LL | Bar(String, u32),
17
+ | ^^^
18
+
19
+ error: aborting due to 2 previous errors
20
+
You can’t perform that action at this time.
0 commit comments