//@ known-bug: #132330 //@compile-flags: -Znext-solver=globally trait Service { type S; } trait Framing { type F; } impl Framing for () { type F = (); } trait HttpService: Service {} type BoxService = Box>; fn build_server BoxService>(_: F) {} fn make_server() -> Box> { unimplemented!() } fn main() { build_server(|| make_server()) }