]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-41783.rs
Rollup merge of #44160 - AndyGauge:api-docs-macros, r=steveklabnik
[rust.git] / src / test / rustdoc / issue-41783.rs
1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // @has issue_41783/struct.Foo.html
12 // @!has - 'space'
13 // @!has - 'comment'
14 // @has - '# <span class="ident">single'
15 // @has - '## <span class="ident">double</span>'
16 // @has - '### <span class="ident">triple</span>'
17 // @has - '<span class="attribute">#[<span class="ident">outer</span>]</span>'
18 // @has - '<span class="attribute">#![<span class="ident">inner</span>]</span>'
19
20 /// ```no_run
21 /// # # space
22 /// # comment
23 /// ## single
24 /// ### double
25 /// #### triple
26 /// ##[outer]
27 /// ##![inner]
28 /// ```
29 pub struct Foo;