]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/smoke.rs
Rollup merge of #107412 - tshepang:needless-check, r=wesleywiser
[rust.git] / tests / rustdoc / smoke.rs
1 // @has smoke/index.html
2
3 //! Very docs
4
5 // @has smoke/bar/index.html
6 pub mod bar {
7
8     /// So correct
9     // @has smoke/bar/baz/index.html
10     pub mod baz {
11         /// Much detail
12         // @has smoke/bar/baz/fn.baz.html
13         pub fn baz() { }
14     }
15
16     /// *wow*
17     // @has smoke/bar/trait.Doge.html
18     pub trait Doge { fn dummy(&self) { } }
19
20     // @has smoke/bar/struct.Foo.html
21     pub struct Foo { x: isize, y: usize }
22
23     // @has smoke/bar/fn.prawns.html
24     pub fn prawns((a, b): (isize, usize), Foo { x, y }: Foo) { }
25 }