Debian Codegraph @

debian/missing-sources/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.stderr

raw
1 warning: ambiguous glob re-exports
2 --> tests/ui-stable/invalid-impls/../../../src/util/macros.rs
3 |
4 | / macro_rules! define_cast {
5 ... |
6 | | };
7 | | }
8 | |_^ the name `define_cast` in the macro namespace is first re-exported here
9 |
10 ::: tests/ui-stable/invalid-impls/invalid-impls.rs:16:5
11 |
12 16 | use zerocopy::*;
13 | ----------- but the name `define_cast` in the macro namespace is also re-exported here
14 |
15 = note: `#[warn(ambiguous_glob_reexports)]` on by default
16
17 error[E0277]: the trait bound `T: zerocopy::TryFromBytes` is not satisfied
18 --> tests/ui-stable/invalid-impls/invalid-impls.rs:26:43
19 |
20 26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
21 | ^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `T`
22 |
23 = note: Consider adding `#[derive(TryFromBytes)]` to `T`
24 note: required for `Foo<T>` to implement `zerocopy::TryFromBytes`
25 --> tests/ui-stable/invalid-impls/invalid-impls.rs:21:10
26 |
27 21 | #[derive(FromBytes, IntoBytes, Unaligned)]
28 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
29 note: required by a bound in `_::Subtrait`
30 --> tests/ui-stable/invalid-impls/../../../src/util/macros.rs
31 |
32 | trait Subtrait: $trait {}
33 | ^^^^^^ required by this bound in `Subtrait`
34 |
35 ::: tests/ui-stable/invalid-impls/invalid-impls.rs:26:5
36 |
37 26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
38 | --------------------------------------------- in this macro invocation
39 = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
40 help: consider restricting type parameter `T` with trait `TryFromBytes`
41 |
42 26 | impl_or_verify!(T: zerocopy::TryFromBytes => TryFromBytes for Foo<T>);
43 | ++++++++++++++++++++++++
44
45 error[E0277]: the trait bound `T: zerocopy::FromZeros` is not satisfied
46 --> tests/ui-stable/invalid-impls/invalid-impls.rs:27:40
47 |
48 27 | impl_or_verify!(T => FromZeros for Foo<T>);
49 | ^^^^^^ the trait `zerocopy::FromZeros` is not implemented for `T`
50 |
51 = note: Consider adding `#[derive(FromZeros)]` to `T`
52 note: required for `Foo<T>` to implement `zerocopy::FromZeros`
53 --> tests/ui-stable/invalid-impls/invalid-impls.rs:21:10
54 |
55 21 | #[derive(FromBytes, IntoBytes, Unaligned)]
56 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
57 note: required by a bound in `_::Subtrait`
58 --> tests/ui-stable/invalid-impls/../../../src/util/macros.rs
59 |
60 | trait Subtrait: $trait {}
61 | ^^^^^^ required by this bound in `Subtrait`
62 |
63 ::: tests/ui-stable/invalid-impls/invalid-impls.rs:27:5
64 |
65 27 | impl_or_verify!(T => FromZeros for Foo<T>);
66 | ------------------------------------------ in this macro invocation
67 = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
68 help: consider restricting type parameter `T` with trait `FromZeros`
69 |
70 27 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
71 | +++++++++++++++++++++
72
73 error[E0277]: the trait bound `T: zerocopy::FromBytes` is not satisfied
74 --> tests/ui-stable/invalid-impls/invalid-impls.rs:28:40
75 |
76 28 | impl_or_verify!(T => FromBytes for Foo<T>);
77 | ^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `T`
78 |
79 = note: Consider adding `#[derive(FromBytes)]` to `T`
80 note: required for `Foo<T>` to implement `zerocopy::FromBytes`
81 --> tests/ui-stable/invalid-impls/invalid-impls.rs:21:10
82 |
83 21 | #[derive(FromBytes, IntoBytes, Unaligned)]
84 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
85 note: required by a bound in `_::Subtrait`
86 --> tests/ui-stable/invalid-impls/../../../src/util/macros.rs
87 |
88 | trait Subtrait: $trait {}
89 | ^^^^^^ required by this bound in `Subtrait`
90 |
91 ::: tests/ui-stable/invalid-impls/invalid-impls.rs:28:5
92 |
93 28 | impl_or_verify!(T => FromBytes for Foo<T>);
94 | ------------------------------------------ in this macro invocation
95 = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
96 help: consider restricting type parameter `T` with trait `FromBytes`
97 |
98 28 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
99 | +++++++++++++++++++++
100
101 error[E0277]: the trait bound `T: zerocopy::IntoBytes` is not satisfied
102 --> tests/ui-stable/invalid-impls/invalid-impls.rs:29:40
103 |
104 29 | impl_or_verify!(T => IntoBytes for Foo<T>);
105 | ^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `T`
106 |
107 = note: Consider adding `#[derive(IntoBytes)]` to `T`
108 note: required for `Foo<T>` to implement `zerocopy::IntoBytes`
109 --> tests/ui-stable/invalid-impls/invalid-impls.rs:21:21
110 |
111 21 | #[derive(FromBytes, IntoBytes, Unaligned)]
112 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
113 note: required by a bound in `_::Subtrait`
114 --> tests/ui-stable/invalid-impls/../../../src/util/macros.rs
115 |
116 | trait Subtrait: $trait {}
117 | ^^^^^^ required by this bound in `Subtrait`
118 |
119 ::: tests/ui-stable/invalid-impls/invalid-impls.rs:29:5
120 |
121 29 | impl_or_verify!(T => IntoBytes for Foo<T>);
122 | ------------------------------------------ in this macro invocation
123 = note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
124 help: consider restricting type parameter `T` with trait `IntoBytes`
125 |
126 29 | impl_or_verify!(T: zerocopy::IntoBytes => IntoBytes for Foo<T>);
127 | +++++++++++++++++++++
128
129 error[E0277]: the trait bound `T: zerocopy::Unaligned` is not satisfied
130 --> tests/ui-stable/invalid-impls/invalid-impls.rs:30:40
131 |
132 30 | impl_or_verify!(T => Unaligned for Foo<T>);
133 | ^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `T`
134 |
135 = note: Consider adding `#[derive(Unaligned)]` to `T`
136 note: required for `Foo<T>` to implement `zerocopy::Unaligned`
137 --> tests/ui-stable/invalid-impls/invalid-impls.rs:21:32
138 |
139 21 | #[derive(FromBytes, IntoBytes, Unaligned)]
140 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
141 note: required by a bound in `_::Subtrait`
142 --> tests/ui-stable/invalid-impls/../../../src/util/macros.rs
143 |
144 | trait Subtrait: $trait {}
145 | ^^^^^^ required by this bound in `Subtrait`
146 |
147 ::: tests/ui-stable/invalid-impls/invalid-impls.rs:30:5
148 |
149 30 | impl_or_verify!(T => Unaligned for Foo<T>);
150 | ------------------------------------------ in this macro invocation
151 = note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
152 help: consider restricting type parameter `T` with trait `Unaligned`
153 |
154 30 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
155 | +++++++++++++++++++++