rust/tests/rustdoc/description_default.rs

15 lines
486 B
Rust
Raw Normal View History

#![crate_name = "foo"]
2021-02-20 18:51:41 -06:00
// @has 'foo/index.html' '//meta[@name="description"]/@content' \
// 'API documentation for the Rust `foo` crate.'
2021-02-20 18:51:41 -06:00
// @has 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
// 'API documentation for the Rust `foo_mod` mod in crate `foo`.'
pub mod foo_mod {
pub struct __Thing {}
}
2021-02-20 18:51:41 -06:00
// @has 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
// 'API documentation for the Rust `foo_fn` fn in crate `foo`.'
pub fn foo_fn() {}