// Copyright 2026 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 // , or the MIT // license , at your option. // This file may not be copied, modified, or distributed except according to // those terms. extern crate zerocopy_renamed; use zerocopy_renamed::FromBytes; #[derive(FromBytes)] //~^ ERROR: `on_error` is experimental; pass '--cfg zerocopy_unstable_derive_on_error' to enable //~| ERROR: the trait bound `bool: FromBytes` is not satisfied #[zerocopy(crate = "zerocopy_renamed")] #[zerocopy(on_error = "skip")] #[repr(C)] struct Foo(bool); fn main() {}