summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/intra-doc/issue-108653-associated-items-3.rs
blob: 7ffd0a40e7cfe15d5d452b97822cacf8fd4f0a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This is ensuring that the UI output for associated items works when it's being documented
// from another item.

#![deny(rustdoc::broken_intra_doc_links)]
#![allow(nonstandard_style)]

pub trait Trait {
    type Trait;
    const Trait: usize;
}

/// [`Trait`]
//~^ ERROR both a constant and a trait
/// [`Trait::Trait`]
//~^ ERROR both an associated constant and an associated type
pub const Trait: usize = 0;