]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/no-unit-struct-field.rs
Update unsuspicious file list
[rustc.git] / src / test / rustdoc / no-unit-struct-field.rs
1 // This test ensures that the tuple struct fields are not generated in the
2 // search index.
3
4 // @!hasraw search-index.js '"0"'
5 // @!hasraw search-index.js '"1"'
6 // @hasraw search-index.js '"foo_a"'
7 // @hasraw search-index.js '"bar_a"'
8
9 pub struct Bar(pub u32, pub u8);
10 pub struct Foo {
11 pub foo_a: u8,
12 }
13 pub enum Enum {
14 Foo(u8),
15 Bar {
16 bar_a: u8,
17 },
18 }