]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-59326.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / issues / issue-59326.rs
CommitLineData
f9f354fc
XL
1// check-pass
2trait Service {
3 type S;
4}
5
6trait Framing {
7 type F;
8}
9
10impl Framing for () {
11 type F = ();
12}
13
14trait HttpService<F: Framing>: Service<S = F::F> {}
15
16type BoxService = Box<dyn HttpService<(), S = ()>>;
17
18fn build_server<F: FnOnce() -> BoxService>(_: F) {}
19
20fn make_server<F: Framing>() -> Box<dyn HttpService<F, S = F::F>> {
21 unimplemented!()
22}
23
24fn main() {
25 build_server(|| make_server())
26}