Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
15
vendor/cxx/tests/cxx_string.rs
vendored
Normal file
15
vendor/cxx/tests/cxx_string.rs
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue