summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-105952.rs
blob: e3f1df0063dfb1ccc103857f180eba94695233ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_name = "foo"]

#![feature(associated_const_equality)]
pub enum ParseMode {
    Raw,
}
pub trait Parse {
    const PARSE_MODE: ParseMode;
}
pub trait RenderRaw {}

// @hasraw foo/trait.RenderRaw.html 'impl'
// @hasraw foo/trait.RenderRaw.html 'ParseMode::Raw'
impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw for T {}