mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-24 10:03:39 +00:00
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
error: using C++ type by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:4:9
|
|
|
|
|
4 | c: C,
|
|
| ^^^^
|
|
|
|
error: using opaque Rust type by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:5:9
|
|
|
|
|
5 | r: R,
|
|
| ^^^^
|
|
|
|
error: using C++ string by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:6:9
|
|
|
|
|
6 | s: CxxString,
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: passing C++ type by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:16:14
|
|
|
|
|
16 | fn f(c: C) -> C;
|
|
| ^^^^
|
|
|
|
error: returning C++ type by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:16:23
|
|
|
|
|
16 | fn f(c: C) -> C;
|
|
| ^
|
|
|
|
error: passing opaque Rust type by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:17:14
|
|
|
|
|
17 | fn g(r: R) -> R;
|
|
| ^^^^
|
|
|
|
error: returning opaque Rust type by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:17:23
|
|
|
|
|
17 | fn g(r: R) -> R;
|
|
| ^
|
|
|
|
error: passing C++ string by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:18:14
|
|
|
|
|
18 | fn h(s: CxxString) -> CxxString;
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: returning C++ string by value is not supported
|
|
--> $DIR/by_value_not_supported.rs:18:31
|
|
|
|
|
18 | fn h(s: CxxString) -> CxxString;
|
|
| ^^^^^^^^^
|