| commit | ebef4a23a2dcf92f30eb8ce14a1275201a4a9a53 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 15:33:47 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 17:34:52 2020 -0700 |
| tree | 84a1545342139ebd856bf6dc9f76e2bffd598fe2 | |
| parent | 13af5ccb767a0c9cd3ecbe563e1564af9f5c5131 [diff] [blame] |
Implement fallible C++ functions
diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs index fd54654..fe6a364 100644 --- a/tests/ffi/lib.rs +++ b/tests/ffi/lib.rs
@@ -30,6 +30,10 @@ fn c_take_str(s: &str); fn c_take_rust_string(s: String); fn c_take_unique_ptr_string(s: UniquePtr<CxxString>); + + fn c_try_return_void() -> Result<()>; + fn c_try_return_primitive() -> Result<usize>; + fn c_fail_return_primitive() -> Result<usize>; } extern "Rust" {