]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/struct-field.rs
Rollup merge of #69569 - matthiaskrgr:nonminimal_bool, r=mark-Simulacrum
[rust.git] / src / test / rustdoc / struct-field.rs
1 #![crate_name = "foo"]
2
3 // ignore-tidy-linelength
4
5 // @has foo/index.html '//*[@class="docblock"]/p/a[@href="../foo/struct.Foo.html#structfield.bar"]' 'Foo::bar'
6 // @has foo/index.html '//*[@class="docblock"]/p/a[@href="../foo/union.Bar.html#structfield.foo"]' 'Bar::foo'
7 // @has foo/index.html '//*[@class="docblock"]/p/a[@href="../foo/enum.Uniooon.html#X.v"]' 'Uniooon::X'
8
9 //! Test with [Foo::bar], [Bar::foo], [Uniooon::X]
10
11 pub struct Foo {
12     pub bar: usize,
13 }
14
15 pub union Bar {
16     pub foo: u32,
17 }
18
19 pub enum Uniooon {
20     F,
21     X,
22     Y,
23 }