Debian Codegraph @

debian/missing-sources/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
2 --> tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs:15:33
3 |
4 15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
5 | ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
8 --> tests/ui-stable/../include.rs
9 |
10 15 | pub struct NotZerocopy<T = ()>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
13 = help: the following other types implement trait `TryFromBytes`:
14 ()
15 (A, B)
16 (A, B, C)
17 (A, B, C, D)
18 (A, B, C, D, E)
19 (A, B, C, D, E, F)
20 (A, B, C, D, E, F, G)
21 (A, B, C, D, E, F, G, H)
22 and $N others
23 note: required by a bound in `ValidityError`
24 --> src/error.rs
25 |
26 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
27 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
28
29 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
30 --> tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs:15:58
31 |
32 15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
33 | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
34 |
35 help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
36 --> tests/ui-stable/../include.rs
37 |
38 15 | pub struct NotZerocopy<T = ()>(pub T);
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
41 = help: the following other types implement trait `TryFromBytes`:
42 ()
43 (A, B)
44 (A, B, C)
45 (A, B, C, D)
46 (A, B, C, D, E)
47 (A, B, C, D, E, F)
48 (A, B, C, D, E, F, G)
49 (A, B, C, D, E, F, G, H)
50 and $N others
51 note: required by a bound in `try_transmute`
52 --> src/util/macro_util.rs
53 |
54 | pub fn try_transmute<Src, Dst>(src: Src) -> Result<Dst, ValidityError<Src, Dst>>
55 | ------------- required by a bound in this function
56 ...
57 | Dst: TryFromBytes,
58 | ^^^^^^^^^^^^ required by this bound in `try_transmute`
59 = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
60
61 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
62 --> tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs:15:58
63 |
64 15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
65 | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
66 |
67 help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
68 --> tests/ui-stable/../include.rs
69 |
70 15 | pub struct NotZerocopy<T = ()>(pub T);
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
73 = help: the following other types implement trait `TryFromBytes`:
74 ()
75 (A, B)
76 (A, B, C)
77 (A, B, C, D)
78 (A, B, C, D, E)
79 (A, B, C, D, E, F)
80 (A, B, C, D, E, F, G)
81 (A, B, C, D, E, F, G, H)
82 and $N others
83 note: required by a bound in `ValidityError`
84 --> src/error.rs
85 |
86 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
87 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
88 = note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info)