summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/intra-doc/issue-108653-associated-items-2.rs
blob: cbe60f746b682a42febea1f0ea41e22bb1673250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This is ensuring that the UI output for associated items is as expected.

#![deny(rustdoc::broken_intra_doc_links)]

/// [`Trait::IDENT`]
//~^ ERROR both an associated constant and an associated type
pub trait Trait {
    type IDENT;
    const IDENT: usize;
}

/// [`Trait2::IDENT`]
//~^ ERROR both an associated function and an associated type
pub trait Trait2 {
    type IDENT;
    fn IDENT() {}
}