]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/structfields.rs
1 // Copyright 2016 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.
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.
11 // @has structfields/struct.Foo.html
13 // @has - //pre "pub a: ()"
15 // @has - //pre "// some fields omitted"
16 // @!has - //pre "b: ()"
18 // @!has - //pre "c: usize"
21 // @has - //pre "pub d: usize"
25 // @has structfields/struct.Bar.html
27 // @has - //pre "pub a: ()"
29 // @!has - //pre "// some fields omitted"
32 // @has structfields/enum.Qux.html
35 // @has - //pre "a: ()"
37 // @!has - //pre "b: ()"
40 // @has - //pre "c: usize"
42 // @has - //pre "// some fields omitted"