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
+
1
33
error[E0277]: the trait bound `T: FromZeroes` is not satisfied
2
34
--> tests/ui-msrv/invalid-impls/../../../src/macros.rs
3
35
|
4
36
| impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
5
37
| ^^^^^^^^ the trait `FromZeroes` is not implemented for `T`
6
38
|
7
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:26 :1
39
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
8
40
|
9
- 26 | impl_or_verify!(T => FromZeros for Foo<T>);
41
+ 27 | impl_or_verify!(T => FromZeros for Foo<T>);
10
42
| ------------------------------------------ in this macro invocation
11
43
|
12
44
note: 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
14
46
|
15
- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
16
- | ^^^^^^^^^
47
+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
48
+ | ^^^^^^^^^
17
49
note: required by a bound in `_::Subtrait`
18
50
--> tests/ui-msrv/invalid-impls/../../../src/macros.rs
19
51
|
20
52
| trait Subtrait: $trait {}
21
53
| ^^^^^^ required by this bound in `_::Subtrait`
22
54
|
23
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:26 :1
55
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
24
56
|
25
- 26 | impl_or_verify!(T => FromZeros for Foo<T>);
57
+ 27 | impl_or_verify!(T => FromZeros for Foo<T>);
26
58
| ------------------------------------------ in this macro invocation
27
59
= note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
28
60
help: consider restricting type parameter `T`
29
61
|
30
- 26 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
62
+ 27 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
31
63
| +++++++++++++++++++++
32
64
33
65
error[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
36
68
| impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
37
69
| ^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `T`
38
70
|
39
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
71
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
40
72
|
41
- 27 | impl_or_verify!(T => FromBytes for Foo<T>);
73
+ 28 | impl_or_verify!(T => FromBytes for Foo<T>);
42
74
| ------------------------------------------ in this macro invocation
43
75
|
44
76
note: 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
46
78
|
47
- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
48
- | ^^^^^^^^^
79
+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
80
+ | ^^^^^^^^^
49
81
note: required by a bound in `_::Subtrait`
50
82
--> tests/ui-msrv/invalid-impls/../../../src/macros.rs
51
83
|
52
84
| trait Subtrait: $trait {}
53
85
| ^^^^^^ required by this bound in `_::Subtrait`
54
86
|
55
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:27 :1
87
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
56
88
|
57
- 27 | impl_or_verify!(T => FromBytes for Foo<T>);
89
+ 28 | impl_or_verify!(T => FromBytes for Foo<T>);
58
90
| ------------------------------------------ in this macro invocation
59
91
= note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
60
92
help: consider restricting type parameter `T`
61
93
|
62
- 27 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
94
+ 28 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
63
95
| +++++++++++++++++++++
64
96
65
97
error[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
68
100
| impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
69
101
| ^^^^^^^^ the trait `zerocopy::AsBytes` is not implemented for `T`
70
102
|
71
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
103
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
72
104
|
73
- 28 | impl_or_verify!(T => AsBytes for Foo<T>);
105
+ 29 | impl_or_verify!(T => AsBytes for Foo<T>);
74
106
| ---------------------------------------- in this macro invocation
75
107
|
76
108
note: 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
78
110
|
79
- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
80
- | ^^^^^^^
111
+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
112
+ | ^^^^^^^
81
113
note: required by a bound in `_::Subtrait`
82
114
--> tests/ui-msrv/invalid-impls/../../../src/macros.rs
83
115
|
84
116
| trait Subtrait: $trait {}
85
117
| ^^^^^^ required by this bound in `_::Subtrait`
86
118
|
87
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:28 :1
119
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
88
120
|
89
- 28 | impl_or_verify!(T => AsBytes for Foo<T>);
121
+ 29 | impl_or_verify!(T => AsBytes for Foo<T>);
90
122
| ---------------------------------------- in this macro invocation
91
123
= note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
92
124
help: consider restricting type parameter `T`
93
125
|
94
- 28 | impl_or_verify!(T: zerocopy::AsBytes => AsBytes for Foo<T>);
126
+ 29 | impl_or_verify!(T: zerocopy::AsBytes => AsBytes for Foo<T>);
95
127
| +++++++++++++++++++
96
128
97
129
error[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
100
132
| impl<$($tyvar $(: $(? $optbound +)* $($bound +)*)?),*> Subtrait for $ty {}
101
133
| ^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `T`
102
134
|
103
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
135
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:30 :1
104
136
|
105
- 29 | impl_or_verify!(T => Unaligned for Foo<T>);
137
+ 30 | impl_or_verify!(T => Unaligned for Foo<T>);
106
138
| ------------------------------------------ in this macro invocation
107
139
|
108
140
note: 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
110
142
|
111
- 22 | #[derive(FromZeros, FromBytes, AsBytes, Unaligned)]
112
- | ^^^^^^^^^
143
+ 22 | #[derive(TryFromBytes, FromZeros, FromBytes, AsBytes, Unaligned)]
144
+ | ^^^^^^^^^
113
145
note: required by a bound in `_::Subtrait`
114
146
--> tests/ui-msrv/invalid-impls/../../../src/macros.rs
115
147
|
116
148
| trait Subtrait: $trait {}
117
149
| ^^^^^^ required by this bound in `_::Subtrait`
118
150
|
119
- ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:29 :1
151
+ ::: tests/ui-msrv/invalid-impls/invalid-impls.rs:30 :1
120
152
|
121
- 29 | impl_or_verify!(T => Unaligned for Foo<T>);
153
+ 30 | impl_or_verify!(T => Unaligned for Foo<T>);
122
154
| ------------------------------------------ in this macro invocation
123
155
= note: this error originates in the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
124
156
help: consider restricting type parameter `T`
125
157
|
126
- 29 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
158
+ 30 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
127
159
| +++++++++++++++++++++
0 commit comments