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

Commit df3f533

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

File tree

4 files changed

+29
-35
lines changed

4 files changed

+29
-35
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ before_script:
2121
script:
2222
- cargo build --verbose $FEATURES
2323
- cargo test --verbose $FEATURES
24-
- cd test-doc && cargo build
2524

2625
after_success:
2726
- travis-cargo --only stable doc

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)