Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
2 --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:17:33
3 |
4 17 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&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_ref-dst-not-immutable-tryfrombytes.rs:17:59
31 |
32 17 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&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_ref`
52 --> src/util/macro_util.rs
53 |
54 | pub fn try_transmute_ref<Src, Dst>(src: &Src) -> Result<&Dst, ValidityError<&Src, Dst>>
55 | ----------------- required by a bound in this function
56 ...
57 | Dst: TryFromBytes + Immutable,
58 | ^^^^^^^^^^^^ required by this bound in `try_transmute_ref`
59 = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
60
61 error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied
62 --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:17:59
63 |
64 17 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0));
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
66 |
67 help: the trait `Immutable` 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(Immutable)]` to `NotZerocopy`
73 = help: the following other types implement trait `Immutable`:
74 &T
75 &mut T
76 ()
77 (A, B)
78 (A, B, C)
79 (A, B, C, D)
80 (A, B, C, D, E)
81 (A, B, C, D, E, F)
82 and $N others
83 note: required by a bound in `try_transmute_ref`
84 --> src/util/macro_util.rs
85 |
86 | pub fn try_transmute_ref<Src, Dst>(src: &Src) -> Result<&Dst, ValidityError<&Src, Dst>>
87 | ----------------- required by a bound in this function
88 ...
89 | Dst: TryFromBytes + Immutable,
90 | ^^^^^^^^^ required by this bound in `try_transmute_ref`
91 = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
92
93 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
94 --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:17:59
95 |
96 17 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0));
97 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
98 |
99 help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
100 --> tests/ui-stable/../include.rs
101 |
102 15 | pub struct NotZerocopy<T = ()>(pub T);
103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
105 = help: the following other types implement trait `TryFromBytes`:
106 ()
107 (A, B)
108 (A, B, C)
109 (A, B, C, D)
110 (A, B, C, D, E)
111 (A, B, C, D, E, F)
112 (A, B, C, D, E, F, G)
113 (A, B, C, D, E, F, G, H)
114 and $N others
115 note: required by a bound in `ValidityError`
116 --> src/error.rs
117 |
118 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
119 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
120 = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)