about summary refs log tree commit diff
path: root/src/test/rustdoc/link-assoc-const.rs
blob: f9eb2b722d6e6307543e005fb561fca672bf7b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![crate_name = "foo"]

// @has foo/index.html '//a[@href="../foo/foo/constant.FIRSTCONST.html"]' 'foo::FIRSTCONST'
// @has foo/index.html '//a[@href="../foo/struct.Bar.html#associatedconstant.CONST"]' 'Bar::CONST'

//! We have here [`foo::FIRSTCONST`] and [`Bar::CONST`].

pub mod foo {
    pub const FIRSTCONST: u32 = 42;
}

pub struct Bar;

impl Bar {
    pub const CONST: u32 = 42;
}