2 #![warn(clippy::missing_errors_doc)]
3 #![allow(clippy::result_unit_err)]
7 pub fn pub_fn_missing_errors_header() -> Result<(), ()> {
11 pub async fn async_pub_fn_missing_errors_header() -> Result<(), ()> {
15 /// This is not sufficiently documented.
16 pub fn pub_fn_returning_io_result() -> io::Result<()> {
20 /// This is not sufficiently documented.
21 pub async fn async_pub_fn_returning_io_result() -> io::Result<()> {
26 /// A description of the errors goes here.
27 pub fn pub_fn_with_errors_header() -> Result<(), ()> {
32 /// A description of the errors goes here.
33 pub async fn async_pub_fn_with_errors_header() -> Result<(), ()> {
37 /// This function doesn't require the documentation because it is private
38 fn priv_fn_missing_errors_header() -> Result<(), ()> {
42 /// This function doesn't require the documentation because it is private
43 async fn async_priv_fn_missing_errors_header() -> Result<(), ()> {
50 /// This is not sufficiently documented.
51 pub fn pub_method_missing_errors_header() -> Result<(), ()> {
55 /// This is not sufficiently documented.
56 pub async fn async_pub_method_missing_errors_header() -> Result<(), ()> {
61 /// A description of the errors goes here.
62 pub fn pub_method_with_errors_header() -> Result<(), ()> {
67 /// A description of the errors goes here.
68 pub async fn async_pub_method_with_errors_header() -> Result<(), ()> {
72 /// This function doesn't require the documentation because it is private.
73 fn priv_method_missing_errors_header() -> Result<(), ()> {
77 /// This function doesn't require the documentation because it is private.
78 async fn async_priv_method_missing_errors_header() -> Result<(), ()> {
84 /// This is not sufficiently documented.
85 fn trait_method_missing_errors_header() -> Result<(), ()>;
88 /// A description of the errors goes here.
89 fn trait_method_with_errors_header() -> Result<(), ()>;
92 impl Trait1 for Struct1 {
93 fn trait_method_missing_errors_header() -> Result<(), ()> {
97 fn trait_method_with_errors_header() -> Result<(), ()> {
102 fn main() -> Result<(), ()> {