]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/description_default.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / rustdoc / description_default.rs
1 #![crate_name = "foo"]
2
3 // @has 'foo/index.html' '//meta[@name="description"]/@content' \
4 //   'API documentation for the Rust `foo` crate.'
5
6 // @has 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
7 //   'API documentation for the Rust `foo_mod` mod in crate `foo`.'
8 pub mod foo_mod {
9     pub struct __Thing {}
10 }
11
12 // @has 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
13 //   'API documentation for the Rust `foo_fn` fn in crate `foo`.'
14 pub fn foo_fn() {}