Files
rust/tests/ui/const-generics/issues/cg-in-dyn-issue-128176.rs

18 lines
276 B
Rust
Raw Normal View History

//@ check-pass
// Regression test for #128176.
2024-08-04 21:25:49 +02:00
#![feature(generic_const_exprs)]
#![feature(dyn_compatible_for_dispatch)]
#![allow(incomplete_features)]
2024-08-04 21:25:49 +02:00
trait X {
type Y<const N: i16>;
}
const _: () = {
fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
};
fn main() {}