aboutsummaryrefslogtreecommitdiff
path: root/tests/ui-nightly/include_value_not_from_bytes.rs
blob: 45b6138f47a79b95c6c22c04ecc90823cae300c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#[macro_use]
extern crate zerocopy;

fn main() {}

// Should fail because `UnsafeCell<u32>: !FromBytes`.
const NOT_FROM_BYTES: core::cell::UnsafeCell<u32> =
    include_value!("../../testdata/include_value/data");