2 // pretty-expanded FIXME #23616
4 #![feature(fn_traits, unboxed_closures)]
8 trait Response { fn dummy(&self) { } }
9 trait Request { fn dummy(&self) { } }
11 fn enter(&mut self, _: &mut R, _: &mut S, a: &mut Alloy) -> Status;
24 fn find<T>(&self) -> Option<T> {
29 impl<'b> Fn<(&'b mut (Response+'b),)> for SendFile {
30 extern "rust-call" fn call(&self, (_res,): (&'b mut (Response+'b),)) {}
33 impl<'b> FnMut<(&'b mut (Response+'b),)> for SendFile {
34 extern "rust-call" fn call_mut(&mut self, (_res,): (&'b mut (Response+'b),)) {
39 impl<'b> FnOnce<(&'b mut (Response+'b),)> for SendFile {
42 extern "rust-call" fn call_once(self, (_res,): (&'b mut (Response+'b),)) {
47 impl<Rq: Request, Rs: Response> Ingot<Rq, Rs> for HelloWorld {
48 fn enter(&mut self, _req: &mut Rq, res: &mut Rs, alloy: &mut Alloy) -> Status {
49 let send_file = alloy.find::<SendFile>().unwrap();