rust/tests/crashes/136678.rs
2025-03-08 20:13:07 +01:00

18 lines
312 B
Rust

//@ known-bug: #136678
#![feature(inherent_associated_types)]
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
struct B<const A: usize>;
struct Test<const A: usize>;
impl<const A: usize> Test<A> {
type B = B<{ A }>;
fn test(a: Self::B) -> Self::B {
a
}
}
pub fn main() {}