353b0b11 FG |
1 | #![deny(rustdoc::broken_intra_doc_links)] |
2 | #![allow(nonstandard_style)] |
3 | |
4 | pub trait Trait { |
5 | type MAX; |
6 | } |
7 | |
8 | /// [`u32::MAX`] |
9 | //~^ ERROR both an associated constant and an associated type |
10 | impl Trait for u32 { |
11 | type MAX = u32; |
12 | } |