2 #![feature(rustdoc_internals)]
4 // tests for the html <title> element
6 // @has foo/index.html '//head/title' 'foo - Rust'
8 // @has foo/fn.widget_count.html '//head/title' 'widget_count in foo - Rust'
10 pub fn widget_count() {}
12 // @has foo/struct.Widget.html '//head/title' 'Widget in foo - Rust'
15 // @has foo/constant.ANSWER.html '//head/title' 'ANSWER in foo - Rust'
16 pub const ANSWER: u8 = 42;
18 // @has foo/blah/index.html '//head/title' 'foo::blah - Rust'
20 // @has foo/blah/struct.Widget.html '//head/title' 'Widget in foo::blah - Rust'
23 // @has foo/blah/trait.Awesome.html '//head/title' 'Awesome in foo::blah - Rust'
26 // @has foo/blah/fn.make_widget.html '//head/title' 'make_widget in foo::blah - Rust'
27 pub fn make_widget() {}
29 // @has foo/macro.cool_macro.html '//head/title' 'cool_macro in foo - Rust'
31 macro_rules! cool_macro {
36 // @has foo/keyword.continue.html '//head/title' 'continue - Rust'
37 #[doc(keyword = "continue")]
38 mod continue_keyword {}
40 // @has foo/primitive.u8.html '//head/title' 'u8 - Rust'
41 // @!has - '//head/title' 'foo'
42 #[doc(primitive = "u8")]