mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
21 lines
415 B
Rust
21 lines
415 B
Rust
|
//@ known-bug: rust-lang/rust#125957
|
||
|
#![feature(generic_const_exprs)]
|
||
|
#![allow(incomplete_features)]
|
||
|
#![feature(associated_const_equality)]
|
||
|
|
||
|
pub struct Equal<const T: usize, const R: usize>();
|
||
|
|
||
|
pub enum ParseMode {
|
||
|
Raw,
|
||
|
}
|
||
|
pub trait Parse {
|
||
|
const PARSE_MODE: ParseMode;
|
||
|
}
|
||
|
pub trait RenderRaw: Parse<PARSE_MODE = { ParseMode::Raw }> {}
|
||
|
|
||
|
trait GenericVec<T> {
|
||
|
fn unwrap() -> dyn RenderRaw;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|