| commit | 8b9d176ea73a5ceb1db42c8b2e5660ccafc7f685 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Sat Apr 25 16:05:46 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Sat Apr 25 18:02:19 2020 -0700 |
| tree | 2d915d8a698d70987915098b59f5ce9a9822e423 | |
| parent | 03dca701619a0d4b2018eba6afaf0aa245cec077 [diff] [blame] |
Fix and test fallible return of Vec from C to Rust
diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs index 0965e52..6e636d8 100644 --- a/tests/ffi/lib.rs +++ b/tests/ffi/lib.rs
@@ -61,6 +61,7 @@ fn c_try_return_sliceu8(s: &[u8]) -> Result<&[u8]>; fn c_try_return_rust_string() -> Result<String>; fn c_try_return_unique_ptr_string() -> Result<UniquePtr<CxxString>>; + fn c_try_return_rust_vec() -> Result<Vec<u8>>; fn get(self: &C) -> usize; fn set(self: &mut C, n: usize) -> usize;