about summary refs log tree commit diff
path: root/src/test/rustdoc/intra-doc/enum-struct-field.rs
blob: 70bf343a9a5e5a144950de51f51e3767bce088ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_name = "foo"]

pub enum Foo {
    X {
        y: u8,
    }
}

/// Hello
///
/// I want [Foo::X::y].
pub fn foo() {}

// @has foo/fn.foo.html '//a/@href' '../foo/enum.Foo.html#variant.X.field.y'