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