rust/tests/crashes/125957.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
415 B
Rust
Raw Normal View History

2024-06-08 11:36:21 -05:00
//@ 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() {}