summaryrefslogtreecommitdiffstats
path: root/third_party/rust/error-chain/examples/doc.rs
blob: 68f57d788461789e8b3bffac872e0c7b4ca995c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#![deny(missing_docs)]

//! This module is used to check that all generated items are documented.

#[macro_use]
extern crate error_chain;

/// Inner module.
pub mod inner {
    error_chain! {}
}

error_chain! {
    links {
        Inner(inner::Error, inner::ErrorKind) #[doc = "Doc"];
    }
    foreign_links {
        Io(::std::io::Error) #[doc = "Io"];
    }
    errors {
        /// Doc
        Test2 {

        }
    }
}

fn main() {}