| 1 |
#[allow( |
| 2 |
deprecated, |
| 3 |
private_bounds, |
| 4 |
non_local_definitions, |
| 5 |
non_camel_case_types, |
| 6 |
non_upper_case_globals, |
| 7 |
non_snake_case, |
| 8 |
non_ascii_idents, |
| 9 |
clippy::missing_inline_in_public_items, |
| 10 |
)] |
| 11 |
#[deny(ambiguous_associated_items)] |
| 12 |
#[automatically_derived] |
| 13 |
const _: () = { |
| 14 |
unsafe impl ::zerocopy::TryFromBytes for Foo { |
| 15 |
fn only_derive_is_allowed_to_implement_this_trait() {} |
| 16 |
fn is_bit_valid( |
| 17 |
_candidate: ::zerocopy::Maybe<Self>, |
| 18 |
) -> ::zerocopy::util::macro_util::core_reexport::primitive::bool { |
| 19 |
if false { |
| 20 |
fn assert_is_from_bytes<T>() |
| 21 |
where |
| 22 |
T: ::zerocopy::FromBytes, |
| 23 |
T: ?::zerocopy::util::macro_util::core_reexport::marker::Sized, |
| 24 |
{} |
| 25 |
assert_is_from_bytes::<Self>(); |
| 26 |
} |
| 27 |
true |
| 28 |
} |
| 29 |
} |
| 30 |
}; |
| 31 |
#[allow( |
| 32 |
deprecated, |
| 33 |
private_bounds, |
| 34 |
non_local_definitions, |
| 35 |
non_camel_case_types, |
| 36 |
non_upper_case_globals, |
| 37 |
non_snake_case, |
| 38 |
non_ascii_idents, |
| 39 |
clippy::missing_inline_in_public_items, |
| 40 |
)] |
| 41 |
#[deny(ambiguous_associated_items)] |
| 42 |
#[automatically_derived] |
| 43 |
const _: () = { |
| 44 |
unsafe impl ::zerocopy::FromZeros for Foo { |
| 45 |
fn only_derive_is_allowed_to_implement_this_trait() {} |
| 46 |
} |
| 47 |
}; |
| 48 |
#[allow( |
| 49 |
deprecated, |
| 50 |
private_bounds, |
| 51 |
non_local_definitions, |
| 52 |
non_camel_case_types, |
| 53 |
non_upper_case_globals, |
| 54 |
non_snake_case, |
| 55 |
non_ascii_idents, |
| 56 |
clippy::missing_inline_in_public_items, |
| 57 |
)] |
| 58 |
#[deny(ambiguous_associated_items)] |
| 59 |
#[automatically_derived] |
| 60 |
const _: () = { |
| 61 |
unsafe impl ::zerocopy::FromBytes for Foo { |
| 62 |
fn only_derive_is_allowed_to_implement_this_trait() {} |
| 63 |
} |
| 64 |
}; |