summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/intra-doc/enum-struct-field.rs
blob: 2270a1fafa1cb8dd75d3a971a89aa5d45ba39849 (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' 'enum.Foo.html#variant.X.field.y'