2024-07-12 17:36:21 -07:00
|
|
|
// https://github.com/rust-lang/rust/issues/105952
|
2022-12-21 23:54:29 +00: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 14:03:08 +02:00
|
|
|
//@ hasraw foo/trait.RenderRaw.html 'impl'
|
|
|
|
//@ hasraw foo/trait.RenderRaw.html 'ParseMode::Raw'
|
2022-12-21 23:54:29 +00:00
|
|
|
impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw for T {}
|