Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 09db3b3

Browse files
committed
Move test-doc to examples/
1 parent 0e85f07 commit 09db3b3

File tree

3 files changed

+29
-34
lines changed

3 files changed

+29
-34
lines changed

examples/doc.rs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#![deny(missing_docs)]
2+
3+
//! This module is used to check that all generated items are documented.
4+
5+
#[macro_use]
6+
extern crate error_chain;
7+
8+
/// Inner module.
9+
pub mod inner {
10+
error_chain! {
11+
}
12+
}
13+
14+
error_chain! {
15+
links {
16+
inner::Error, Test, #[doc = "Doc"];
17+
}
18+
foreign_links {
19+
::std::io::Error, Io, #[doc = "Io"];
20+
}
21+
errors {
22+
/// Doc
23+
Test2 {
24+
25+
}
26+
}
27+
}
28+
29+
fn main() {}

test-doc/Cargo.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

test-doc/src/lib.rs

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)