1 // compile-flags: --edition 2018
2 #![warn(clippy::missing_errors_doc)]
6 pub fn pub_fn_missing_errors_header() -> Result<(), ()> {
10 pub async fn async_pub_fn_missing_errors_header() -> Result<(), ()> {
14 /// This is not sufficiently documented.
15 pub fn pub_fn_returning_io_result() -> io::Result<()> {
19 /// This is not sufficiently documented.
20 pub async fn async_pub_fn_returning_io_result() -> io::Result<()> {
25 /// A description of the errors goes here.
26 pub fn pub_fn_with_errors_header() -> Result<(), ()> {
31 /// A description of the errors goes here.
32 pub async fn async_pub_fn_with_errors_header() -> Result<(), ()> {
36 /// This function doesn't require the documentation because it is private
37 fn priv_fn_missing_errors_header() -> Result<(), ()> {
41 /// This function doesn't require the documentation because it is private
42 async fn async_priv_fn_missing_errors_header() -> Result<(), ()> {
49 /// This is not sufficiently documented.
50 pub fn pub_method_missing_errors_header() -> Result<(), ()> {
54 /// This is not sufficiently documented.
55 pub async fn async_pub_method_missing_errors_header() -> Result<(), ()> {
60 /// A description of the errors goes here.
61 pub fn pub_method_with_errors_header() -> Result<(), ()> {
66 /// A description of the errors goes here.
67 pub async fn async_pub_method_with_errors_header() -> Result<(), ()> {
71 /// This function doesn't require the documentation because it is private.
72 fn priv_method_missing_errors_header() -> Result<(), ()> {
76 /// This function doesn't require the documentation because it is private.
77 async fn async_priv_method_missing_errors_header() -> Result<(), ()> {
83 /// This is not sufficiently documented.
84 fn trait_method_missing_errors_header() -> Result<(), ()>;
87 /// A description of the errors goes here.
88 fn trait_method_with_errors_header() -> Result<(), ()>;
91 impl Trait1 for Struct1 {
92 fn trait_method_missing_errors_header() -> Result<(), ()> {
96 fn trait_method_with_errors_header() -> Result<(), ()> {
101 fn main() -> Result<(), ()> {