mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-01 23:31:32 +00:00
15 lines
335 B
Rust
15 lines
335 B
Rust
#![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 {}
|