File: by_value_not_supported.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (59 lines) | stat: -rw-r--r-- 1,685 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
error: using opaque C++ type by value is not supported
 --> tests/ui/by_value_not_supported.rs:4:9
  |
4 |         c: C,
  |         ^^^^

error: using opaque Rust type by value is not supported
 --> tests/ui/by_value_not_supported.rs:5:9
  |
5 |         r: R,
  |         ^^^^

error: using C++ string by value is not supported
 --> tests/ui/by_value_not_supported.rs:6:9
  |
6 |         s: CxxString,
  |         ^^^^^^^^^^^^

error: needs a cxx::ExternType impl in order to be used as a field of `S`, argument of `f` or return value of `f`
  --> tests/ui/by_value_not_supported.rs:10:9
   |
10 |         type C;
   |         ^^^^^^

error: passing opaque C++ type by value is not supported
  --> tests/ui/by_value_not_supported.rs:16:14
   |
16 |         fn f(c: C) -> C;
   |              ^^^^

error: returning opaque C++ type by value is not supported
  --> tests/ui/by_value_not_supported.rs:16:23
   |
16 |         fn f(c: C) -> C;
   |                       ^

error: passing opaque Rust type by value is not supported
  --> tests/ui/by_value_not_supported.rs:17:14
   |
17 |         fn g(r: R) -> R;
   |              ^^^^

error: returning opaque Rust type by value is not supported
  --> tests/ui/by_value_not_supported.rs:17:23
   |
17 |         fn g(r: R) -> R;
   |                       ^

error: passing C++ string by value is not supported
  --> tests/ui/by_value_not_supported.rs:18:14
   |
18 |         fn h(s: CxxString) -> CxxString;
   |              ^^^^^^^^^^^^

error: returning C++ string by value is not supported
  --> tests/ui/by_value_not_supported.rs:18:31
   |
18 |         fn h(s: CxxString) -> CxxString;
   |                               ^^^^^^^^^