]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/intra-doc-link-enum-struct-field.rs
Suggest defining type parameter when appropriate
[rust.git] / src / test / rustdoc / intra-doc-link-enum-struct-field.rs
1 #![crate_name = "foo"]
2
3 pub enum Foo {
4     X {
5         y: u8,
6     }
7 }
8
9 /// Hello
10 ///
11 /// I want [Foo::X::y].
12 pub fn foo() {}
13
14 // @has foo/fn.foo.html '//a/@href' '../foo/enum.Foo.html#variant.X.field.y'