Debian Codegraph @

third_party/rust/uniffi/tests/ui/proc_macro_arc.stderr

raw
1 error[E0277]: the trait bound `Foo: FfiConverterArc<UniFfiTag>` is not satisfied
2 --> tests/ui/proc_macro_arc.rs:10:1
3 |
4 10 | #[uniffi::export]
5 | ^^^^^^^^^^^^^^^^^ the trait `FfiConverterArc<UniFfiTag>` is not implemented for `Foo`
6 |
7 = help: the trait `LowerReturn<UT>` is implemented for `Arc<T>`
8 = note: required for `Arc<Foo>` to implement `FfiConverter<UniFfiTag>`
9 = note: required for `Arc<Foo>` to implement `uniffi::Lower<UniFfiTag>`
10 = note: required for `Arc<Foo>` to implement `LowerReturn<UniFfiTag>`
11 = note: this error originates in the attribute macro `uniffi::export` (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error[E0277]: the trait bound `Foo: FfiConverterArc<UniFfiTag>` is not satisfied
14 --> tests/ui/proc_macro_arc.rs:11:18
15 |
16 11 | fn make_foo() -> Arc<Foo> {
17 | ^^^^^^^^ the trait `FfiConverterArc<UniFfiTag>` is not implemented for `Foo`
18 |
19 = help: the trait `uniffi::TypeId<UT>` is implemented for `Arc<T>`
20 = note: required for `Arc<Foo>` to implement `FfiConverter<UniFfiTag>`
21 = note: required for `Arc<Foo>` to implement `uniffi::TypeId<UniFfiTag>`
22
23 error[E0277]: the trait bound `child::Foo: FfiConverterArc<UniFfiTag>` is not satisfied
24 --> tests/ui/proc_macro_arc.rs:20:5
25 |
26 20 | #[uniffi::export]
27 | ^^^^^^^^^^^^^^^^^ the trait `FfiConverterArc<UniFfiTag>` is not implemented for `child::Foo`
28 |
29 = help: the trait `Lift<UT>` is implemented for `Arc<T>`
30 = note: required for `Arc<child::Foo>` to implement `FfiConverter<UniFfiTag>`
31 = note: required for `Arc<child::Foo>` to implement `Lift<UniFfiTag>`
32 = note: this error originates in the attribute macro `uniffi::export` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error[E0277]: the trait bound `child::Foo: FfiConverterArc<UniFfiTag>` is not satisfied
35 --> tests/ui/proc_macro_arc.rs:21:22
36 |
37 21 | fn take_foo(foo: Arc<Foo>) {
38 | ^^^^^^^^ the trait `FfiConverterArc<UniFfiTag>` is not implemented for `child::Foo`
39 |
40 = help: the trait `uniffi::TypeId<UT>` is implemented for `Arc<T>`
41 = note: required for `Arc<child::Foo>` to implement `FfiConverter<UniFfiTag>`
42 = note: required for `Arc<child::Foo>` to implement `uniffi::TypeId<UniFfiTag>`
43
44 error[E0277]: the trait bound `Foo: FfiConverterArc<UniFfiTag>` is not satisfied
45 --> tests/ui/proc_macro_arc.rs:10:1
46 |
47 10 | #[uniffi::export]
48 | ^^^^^^^^^^^^^^^^^ the trait `FfiConverterArc<UniFfiTag>` is not implemented for `Foo`
49 |
50 = help: the trait `FfiConverter<UT>` is implemented for `Arc<T>`
51 = note: required for `Arc<Foo>` to implement `FfiConverter<UniFfiTag>`
52 = note: this error originates in the attribute macro `uniffi::export` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54 error[E0277]: the trait bound `child::Foo: FfiConverterArc<UniFfiTag>` is not satisfied
55 --> tests/ui/proc_macro_arc.rs:20:5
56 |
57 20 | #[uniffi::export]
58 | ^^^^^^^^^^^^^^^^^ the trait `FfiConverterArc<UniFfiTag>` is not implemented for `child::Foo`
59 |
60 = help: the trait `FfiConverter<UT>` is implemented for `Arc<T>`
61 = note: required for `Arc<child::Foo>` to implement `FfiConverter<UniFfiTag>`
62 = note: this error originates in the attribute macro `uniffi::export` (in Nightly builds, run with -Z macro-backtrace for more info)
63
64 error[E0004]: non-exhaustive patterns: type `&child::Foo` is non-empty
65 --> tests/ui/proc_macro_arc.rs:22:15
66 |
67 22 | match &*foo {}
68 | ^^^^^
69 |
70 note: `child::Foo` defined here
71 --> tests/ui/proc_macro_arc.rs:18:10
72 |
73 18 | enum Foo {}
74 | ^^^
75 = note: the matched value is of type `&child::Foo`
76 = note: references are always considered inhabited
77 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
78 |
79 22 ~ match &*foo {
80 23 + _ => todo!(),
81 24 + }
82 |