mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
17 lines
413 B
Rust
17 lines
413 B
Rust
// This is ensuring that the UI output for associated items works when it's being documented
|
|
// from another item.
|
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
|
#![allow(nonstandard_style)]
|
|
|
|
pub trait Trait {
|
|
type Trait;
|
|
const Trait: usize;
|
|
}
|
|
|
|
/// [`Trait`]
|
|
//~^ ERROR both a constant and a trait
|
|
/// [`Trait::Trait`]
|
|
//~^ ERROR both an associated constant and an associated type
|
|
pub const Trait: usize = 0;
|