1 //! The point of this crate is to be able to have enough different "kinds" of
2 //! documentation generated so we can test each different features.
4 #![crate_name = "test_docs"]
5 #![feature(doc_keyword)]
9 /// Basic function with some code examples:
12 /// println!("nothing fancy");
15 /// A failing to compile one:
18 /// println!("where did my argument {} go? :'(");
23 /// ```ignore (it's a test)
24 /// Let's say I'm just some text will ya?
28 /// Just a normal struct.
33 pub fn must_use(&self) -> bool {
38 /// Just a normal enum.
39 #[doc(alias = "ThisIsAnAlias")]
40 pub enum WhoLetTheDogOut {
47 /// Who doesn't love to wrap a `format!` call?
48 pub fn some_more_function<T: fmt::Debug>(t: &T) -> String {
53 pub trait AnotherOne {
73 /// Check for "i" signs in lists!
81 /// 4. ```ignore (it's a test)
88 /// ```ignore (still a test)
91 pub fn check_list_code_block() {}
94 WithVariants { and: usize, sub: usize, variants: usize },
97 #[doc(keyword = "CookieMonster")]
100 /// Just some type alias.
101 pub type SomeType = u32;