//@ known-bug: rust-lang/rust#128176 #![feature(generic_const_exprs)] #![feature(dyn_compatible_for_dispatch)] trait X { type Y; } const _: () = { fn f2<'a>(arg: Box = &'a ()>>) {} }; fn main() {}