help wanted
説明
#[cxx::bridge]
mod ffi {
extern "Rust" {
type Thing<'a>;
}
unsafe extern "C++" {
fn f(callback: for<'a> fn(&mut Thing<'a>, &mut Thing<'a>));
}
}
Currently rejected:
error: function pointer with lifetime parameters is not supported yet
--> src/main.rs:8:24
|
8 | fn f(callback: for<'a> fn(&mut Thing<'a>, &mut Thing<'a>));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^