1 // Derived from an ICE found in tokio-xmpp during a crater run.
3 // compile-flags: -Zdrop-tracking
14 info_result: InfoResult
18 async fn handle(&mut self) {
19 let mut info = self.info_result.clone();
20 info.node = Some("bar".into());
21 let element = parse_info(info);
22 let _ = send_element(element).await;
29 async fn send_element(_: Element) {}
31 fn parse(_: &[u8]) -> Result<(), ()> {
35 fn parse_info(_: InfoResult) -> Element {
40 let mut agent = Agent {
41 info_result: InfoResult { node: None }
43 let _ = agent.handle();