2024-08-04 14:25:49 -05:00
|
|
|
//@ known-bug: rust-lang/rust#128176
|
|
|
|
|
|
|
|
#![feature(generic_const_exprs)]
|
2024-10-09 11:37:30 -05:00
|
|
|
#![feature(dyn_compatible_for_dispatch)]
|
2024-08-04 14:25:49 -05:00
|
|
|
trait X {
|
|
|
|
type Y<const N: i16>;
|
|
|
|
}
|
|
|
|
|
|
|
|
const _: () = {
|
|
|
|
fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {}
|