1 // revisions: no_drop_tracking drop_tracking drop_tracking_mir
2 // [drop_tracking] compile-flags: -Zdrop-tracking
3 // [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
4 // Derived from an ICE found in tokio-xmpp during a crater run.
16 info_result: InfoResult
20 async fn handle(&mut self) {
21 let mut info = self.info_result.clone();
22 info.node = Some("bar".into());
23 let element = parse_info(info);
24 let _ = send_element(element).await;
31 async fn send_element(_: Element) {}
33 fn parse(_: &[u8]) -> Result<(), ()> {
37 fn parse_info(_: InfoResult) -> Element {
42 let mut agent = Agent {
43 info_result: InfoResult { node: None }
45 let _ = agent.handle();