2022-12-21 17:54:29 -06:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
#![feature(associated_const_equality)]
|
|
|
|
pub enum ParseMode {
|
|
|
|
Raw,
|
|
|
|
}
|
|
|
|
pub trait Parse {
|
|
|
|
const PARSE_MODE: ParseMode;
|
|
|
|
}
|
|
|
|
pub trait RenderRaw {}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ hasraw foo/trait.RenderRaw.html 'impl'
|
|
|
|
//@ hasraw foo/trait.RenderRaw.html 'ParseMode::Raw'
|
2022-12-21 17:54:29 -06:00
|
|
|
impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw for T {}
|