]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | // This is ensuring that the UI output for associated items works when it's being documented |
2 | // from another item. | |
3 | ||
4 | #![deny(rustdoc::broken_intra_doc_links)] | |
5 | #![allow(nonstandard_style)] | |
6 | ||
7 | pub trait Trait { | |
8 | type Trait; | |
9 | const Trait: usize; | |
10 | } | |
11 | ||
12 | /// [`Trait`] | |
13 | //~^ ERROR both a constant and a trait | |
14 | /// [`Trait::Trait`] | |
15 | //~^ ERROR both an associated constant and an associated type | |
16 | pub const Trait: usize = 0; |