1+ error[E0277]: the trait bound `T: zerocopy::TryFromBytes` is not satisfied
2+ --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
3+ |
4+ | impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
5+ | ^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `T`
6+ |
7+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:26:1
8+ |
9+ 26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
10+ | --------------------------------------------- in this macro invocation
11+ |
12+ note: required because of the requirements on the impl of `zerocopy::TryFromBytes` for `Foo<T>`
13+ --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:10
14+ |
15+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
16+ | ^^^^^^^^^^^^
17+ note: required by a bound in `_::Subtrait`
18+ --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
19+ |
20+ | trait Subtrait: $trait {}
21+ | ^^^^^^ required by this bound in `_::Subtrait`
22+ |
23+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:26:1
24+ |
25+ 26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
26+ | --------------------------------------------- in this macro invocation
27+ = note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
28+ help: consider restricting type parameter `T`
29+ |
30+ 26 | impl_or_verify!(T: zerocopy::TryFromBytes => TryFromBytes for Foo<T>);
31+ | ++++++++++++++++++++++++
32+
133error[E0277]: the trait bound `T: FromZeroes` is not satisfied
234 --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
335 |
436 | impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
537 | ^^^^^^^^ the trait `FromZeroes` is not implemented for `T`
638 |
7- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:26 :1
39+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
840 |
9- 26 | impl_or_verify!(T => FromZeros for Foo<T>);
41+ 27 | impl_or_verify!(T => FromZeros for Foo<T>);
1042 | ------------------------------------------ in this macro invocation
1143 |
1244note: required because of the requirements on the impl of `FromZeroes` for `Foo<T>`
13- --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:10
45+ --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:24
1446 |
15- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
16- | ^^^^^^^^^
47+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
48+ | ^^^^^^^^^
1749note: required by a bound in `_::Subtrait`
1850 --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
1951 |
2052 | trait Subtrait: $trait {}
2153 | ^^^^^^ required by this bound in `_::Subtrait`
2254 |
23- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:26 :1
55+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
2456 |
25- 26 | impl_or_verify!(T => FromZeros for Foo<T>);
57+ 27 | impl_or_verify!(T => FromZeros for Foo<T>);
2658 | ------------------------------------------ in this macro invocation
2759 = note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
2860help: consider restricting type parameter `T`
2961 |
30- 26 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
62+ 27 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
3163 | +++++++++++++++++++++
3264
3365error[E0277]: the trait bound `T: zerocopy::FromBytes` is not satisfied
@@ -36,30 +68,30 @@ error[E0277]: the trait bound `T: zerocopy::FromBytes` is not satisfied
3668 | impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
3769 | ^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `T`
3870 |
39- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
71+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
4072 |
41- 27 | impl_or_verify!(T => FromBytes for Foo<T>);
73+ 28 | impl_or_verify!(T => FromBytes for Foo<T>);
4274 | ------------------------------------------ in this macro invocation
4375 |
4476note: required because of the requirements on the impl of `zerocopy::FromBytes` for `Foo<T>`
45- --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:21
77+ --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:35
4678 |
47- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
48- | ^^^^^^^^^
79+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
80+ | ^^^^^^^^^
4981note: required by a bound in `_::Subtrait`
5082 --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
5183 |
5284 | trait Subtrait: $trait {}
5385 | ^^^^^^ required by this bound in `_::Subtrait`
5486 |
55- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
87+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
5688 |
57- 27 | impl_or_verify!(T => FromBytes for Foo<T>);
89+ 28 | impl_or_verify!(T => FromBytes for Foo<T>);
5890 | ------------------------------------------ in this macro invocation
5991 = note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
6092help: consider restricting type parameter `T`
6193 |
62- 27 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
94+ 28 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
6395 | +++++++++++++++++++++
6496
6597error[E0277]: the trait bound `T: zerocopy::AsBytes` is not satisfied
@@ -68,30 +100,30 @@ error[E0277]: the trait bound `T: zerocopy::AsBytes` is not satisfied
68100 | impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
69101 | ^^^^^^^^ the trait `zerocopy::AsBytes` is not implemented for `T`
70102 |
71- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
103+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
72104 |
73- 28 | impl_or_verify!(T => AsBytes for Foo<T>);
105+ 29 | impl_or_verify!(T => AsBytes for Foo<T>);
74106 | ---------------------------------------- in this macro invocation
75107 |
76108note: required because of the requirements on the impl of `zerocopy::AsBytes` for `Foo<T>`
77- --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:32
109+ --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:46
78110 |
79- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
80- | ^^^^^^^
111+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
112+ | ^^^^^^^
81113note: required by a bound in `_::Subtrait`
82114 --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
83115 |
84116 | trait Subtrait: $trait {}
85117 | ^^^^^^ required by this bound in `_::Subtrait`
86118 |
87- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
119+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
88120 |
89- 28 | impl_or_verify!(T => AsBytes for Foo<T>);
121+ 29 | impl_or_verify!(T => AsBytes for Foo<T>);
90122 | ---------------------------------------- in this macro invocation
91123 = note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
92124help: consider restricting type parameter `T`
93125 |
94- 28 | impl_or_verify!(T: zerocopy::AsBytes => AsBytes for Foo<T>);
126+ 29 | impl_or_verify!(T: zerocopy::AsBytes => AsBytes for Foo<T>);
95127 | +++++++++++++++++++
96128
97129error[E0277]: the trait bound `T: zerocopy::Unaligned` is not satisfied
@@ -100,28 +132,28 @@ error[E0277]: the trait bound `T: zerocopy::Unaligned` is not satisfied
100132 | impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
101133 | ^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `T`
102134 |
103- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
135+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:30 :1
104136 |
105- 29 | impl_or_verify!(T => Unaligned for Foo<T>);
137+ 30 | impl_or_verify!(T => Unaligned for Foo<T>);
106138 | ------------------------------------------ in this macro invocation
107139 |
108140note: required because of the requirements on the impl of `zerocopy::Unaligned` for `Foo<T>`
109- --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:41
141+ --> tests/ui-msrv/invalid-impls/invalid-impls.rs:22:55
110142 |
111- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
112- | ^^^^^^^^^
143+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
144+ | ^^^^^^^^^
113145note: required by a bound in `_::Subtrait`
114146 --> tests/ui-msrv/invalid-impls/../../../src/macros.rs
115147 |
116148 | trait Subtrait: $trait {}
117149 | ^^^^^^ required by this bound in `_::Subtrait`
118150 |
119- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
151+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:30 :1
120152 |
121- 29 | impl_or_verify!(T => Unaligned for Foo<T>);
153+ 30 | impl_or_verify!(T => Unaligned for Foo<T>);
122154 | ------------------------------------------ in this macro invocation
123155 = note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
124156help: consider restricting type parameter `T`
125157 |
126- 29 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
158+ 30 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
127159 | +++++++++++++++++++++
0 commit comments