rust/tests/crashes/132330.rs

29 lines
469 B
Rust
Raw Normal View History

2024-11-06 15:10:23 -06:00
//@ known-bug: #132330
//@compile-flags: -Znext-solver=globally
trait Service {
type S;
}
trait Framing {
type F;
}
impl Framing for () {
type F = ();
}
trait HttpService<F: Framing>: Service<S = F::F> {}
type BoxService = Box<dyn HttpService<(), S = ()>>;
fn build_server<F: FnOnce() -> BoxService>(_: F) {}
fn make_server<F: Framing>() -> Box<dyn HttpService<F, S = F::F>> {
unimplemented!()
}
fn main() {
build_server(|| make_server())
}