1 // Derived from an ICE found in tokio-xmpp during a crater run.
3 // compile-flags: -Zdrop-tracking
9 node: Option<std::rc::Rc<String>>
13 info_result: InfoResult
17 async fn handle(&mut self) {
18 let mut info = self.info_result.clone();
20 let element = parse_info(info);
21 let _ = send_element(element).await;
28 async fn send_element(_: Element) {}
30 fn parse(_: &[u8]) -> Result<(), ()> {
34 fn parse_info(_: InfoResult) -> Element {
38 fn assert_send<T: Send>(_: T) {}
41 let agent = Agent { info_result: InfoResult { node: None } };
42 // FIXME: It would be nice for this to work. See #94067.
43 assert_send(agent.handle());
44 //~^ cannot be sent between threads safely