You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
306 B
16 lines
306 B
4 months ago
|
use cxx::{let_cxx_string, CxxString};
|
||
|
|
||
|
#[test]
|
||
|
fn test_async_cxx_string() {
|
||
|
async fn f() {
|
||
|
let_cxx_string!(s = "...");
|
||
|
|
||
|
async fn g(_: &CxxString) {}
|
||
|
g(&s).await;
|
||
|
}
|
||
|
|
||
|
// https://github.com/dtolnay/cxx/issues/693
|
||
|
fn assert_send(_: impl Send) {}
|
||
|
assert_send(f());
|
||
|
}
|