diff options
Diffstat (limited to 'vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs')
-rw-r--r-- | vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs b/vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs new file mode 100644 index 000000000..d87b30698 --- /dev/null +++ b/vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs @@ -0,0 +1,11 @@ +// 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 the file is 4 bytes long, not 8. +const WRONG_SIZE: u64 = include_value!("../../testdata/include_value/data"); |