2020-01-09 00:04:53 +00:00
|
|
|
error: missing documentation for a struct
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:13:1
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | / struct Foo {
|
|
|
|
LL | | a: isize,
|
|
|
|
LL | | b: isize,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:14:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | a: isize,
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:15:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | b: isize,
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a struct
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:18:1
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | / pub struct PubFoo {
|
|
|
|
LL | | pub a: isize,
|
|
|
|
LL | | b: isize,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:19:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | pub a: isize,
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:20:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | b: isize,
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a trait
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:43:1
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | / pub trait C {
|
|
|
|
LL | | fn foo(&self);
|
|
|
|
LL | | fn foo_with_impl(&self) {}
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
error: missing documentation for an associated function
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:44:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | fn foo(&self);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
error: missing documentation for an associated function
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:45:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | fn foo_with_impl(&self) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for an associated type
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:55:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | type AssociatedType;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for an associated type
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:56:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | type AssociatedTypeDef = Self;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
error: missing documentation for an associated function
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:67:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
2021-07-19 09:52:05 +00:00
|
|
|
LL | / pub fn new() -> Self {
|
|
|
|
LL | | Foo { a: 0, b: 0 }
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2020-01-09 00:04:53 +00:00
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
error: missing documentation for an associated function
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:70:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | fn bar() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
error: missing documentation for an associated function
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:74:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
|
LL | pub fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
error: missing documentation for an associated function
|
2022-08-11 17:42:16 +00:00
|
|
|
--> $DIR/missing_doc_impl.rs:78:5
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
2021-06-03 06:41:37 +00:00
|
|
|
LL | / fn foo2() -> u32 {
|
|
|
|
LL | | 1
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2020-01-09 00:04:53 +00:00
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
|
|
|
|