1 #![warn(clippy::missing_errors_doc)]
5 pub fn pub_fn_missing_errors_header() -> Result<(), ()> {
9 /// This is not sufficiently documented.
10 pub fn pub_fn_returning_io_result() -> io::Result<()> {
15 /// A description of the errors goes here.
16 pub fn pub_fn_with_errors_header() -> Result<(), ()> {
20 /// This function doesn't require the documentation because it is private
21 fn priv_fn_missing_errors_header() -> Result<(), ()> {
28 /// This is not sufficiently documented.
29 pub fn pub_method_missing_errors_header() -> Result<(), ()> {
34 /// A description of the errors goes here.
35 pub fn pub_method_with_errors_header() -> Result<(), ()> {
39 /// This function doesn't require the documentation because it is private.
40 fn priv_method_missing_errors_header() -> Result<(), ()> {
46 /// This is not sufficiently documented.
47 fn trait_method_missing_errors_header() -> Result<(), ()>;
50 /// A description of the errors goes here.
51 fn trait_method_with_errors_header() -> Result<(), ()>;
54 impl Trait1 for Struct1 {
55 fn trait_method_missing_errors_header() -> Result<(), ()> {
59 fn trait_method_with_errors_header() -> Result<(), ()> {