2024-08-13 03:21:58 -05:00
|
|
|
//@ check-pass
|
2024-03-29 18:21:25 -05:00
|
|
|
#![feature(adt_const_params)]
|
|
|
|
|
2024-08-13 03:21:58 -05:00
|
|
|
// Regression test for #116308
|
|
|
|
|
2024-03-29 18:21:25 -05:00
|
|
|
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>();
|
|
|
|
}
|