---
source: macro/src/lib.rs
assertion_line: 780
expression: "rustfmt_code(&gen_bridge(parse_quote! {\n mod ffi\n {\n #[diplomat::opaque] struct RefList<'a>\n { data: &'a i32, next: Option<Box<Self>>, } impl<'b>\n RefList<'b>\n {\n pub fn extend(&mut self, other: &Self) -> Self\n { unimplemented!() }\n }\n }\n }).to_token_stream().to_string())"
---
mod ffi {
struct RefList<'a> {
data: &'a i32,
next: Option<Box<Self>>,
}
impl<'b> RefList<'b> {
pub fn extend(&mut self, other: &Self) -> Self {
unimplemented!()
}
}
use core::ffi::c_void;
use diplomat_runtime::*;
#[no_mangle]
extern "C" fn RefList_extend<'b>(this: &mut RefList<'b>, other: &RefList<'b>) -> RefList<'b> {
this.extend(other)
}
#[no_mangle]
extern "C" fn RefList_destroy<'a>(this: Box<RefList<'a>>) {}
}