1
0
Fork 0
firefox/third_party/rust/error-chain/examples/doc.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
439 B
Rust

#![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() {}