| commit | 40226ab58adb35ed90ff9c313fefbca8e3c4ae2c | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Mar 03 00:05:35 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue Mar 03 00:05:35 2020 -0800 |
| tree | baeb95af6a8e21e8554337bc0ff93aa804bdabeb | |
| parent | 6c089108e4a1e7fd0cf3e8c61f2d8bf2cdc9bb2f [diff] [blame] |
Implement passing ownership of string to Rust
diff --git a/tests/ffi/tests.cc b/tests/ffi/tests.cc index 65640df..c94e34d 100644 --- a/tests/ffi/tests.cc +++ b/tests/ffi/tests.cc
@@ -100,7 +100,7 @@ r_take_unique_ptr(std::unique_ptr<C>(new C{2020})); r_take_ref_c(C{2020}); r_take_str(rust::Str("2020")); - // TODO r_take_rust_string(rust::String("2020")); + r_take_rust_string(rust::String("2020")); r_take_unique_ptr_string( std::unique_ptr<std::string>(new std::string("2020")));