]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/description.rs
Update src/test/rustdoc/description.rs
[rust.git] / src / test / rustdoc / description.rs
1 #![crate_name = "foo"]
2 //! # Description test crate
3 //!
4 //! This is the contents of the test crate docstring.
5 //! It should not show up in the description.
6
7 // @has 'foo/index.html' '//meta[@name="description"]/@content' \
8 //   'Description test crate'
9
10 // @has 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
11 //   'First paragraph description.'
12 // @!has - '//meta[@name="description"]/@content' 'Second paragraph'
13 /// First paragraph description.
14 ///
15 /// Second paragraph should not show up.
16 pub mod foo_mod {
17     pub struct __Thing {}
18 }
19
20 // @has 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
21 //   'Only paragraph.'
22 /// Only paragraph.
23 pub fn foo_fn() {}