Debian Codegraph @

.cargo/vendor/wasm-bindgen-macro/ui-tests/struct-fields.stderr

raw
1 error[E0277]: the trait bound `Foo: std::marker::Copy` is not satisfied
2 --> ui-tests/struct-fields.rs:10:12
3 |
4 10 | pub a: Foo,
5 | ^^^ the trait `std::marker::Copy` is not implemented for `Foo`
6 |
7 note: required by a bound in `__wbg_get_bar_a::assert_copy`
8 --> ui-tests/struct-fields.rs:8:1
9 |
10 8 | #[wasm_bindgen]
11 | ^^^^^^^^^^^^^^^ required by this bound in `assert_copy`
12 = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error[E0277]: the trait bound `Foo: Clone` is not satisfied
15 --> ui-tests/struct-fields.rs:12:12
16 |
17 12 | pub b: Foo,
18 | ^^^ the trait `Clone` is not implemented for `Foo`
19 |
20 help: consider annotating `Foo` with `#[derive(Clone)]`
21 |
22 3 + #[derive(Clone)]
23 4 | #[wasm_bindgen]
24 |