mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
13 lines
229 B
Rust
13 lines
229 B
Rust
#![deny(rustdoc::broken_intra_doc_links)]
|
|
#![allow(nonstandard_style)]
|
|
|
|
pub trait Trait {
|
|
type MAX;
|
|
}
|
|
|
|
/// [`u32::MAX`]
|
|
//~^ ERROR both an associated constant and an associated type
|
|
impl Trait for u32 {
|
|
type MAX = u32;
|
|
}
|