rust/tests/crashes/116308.rs
2024-04-14 11:21:51 +02:00

17 lines
237 B
Rust

//@ known-bug: #116308
#![feature(adt_const_params)]
pub trait Identity {
type Identity;
}
impl<T> Identity for T {
type Identity = Self;
}
pub fn foo<const X: <i32 as Identity>::Identity>() {}
fn main() {
foo::<12>();
}