diff options
Diffstat (limited to 'third_party/rust/zerocopy/tests/ui-stable/include_value_wrong_size.rs')
-rw-r--r-- | third_party/rust/zerocopy/tests/ui-stable/include_value_wrong_size.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/rust/zerocopy/tests/ui-stable/include_value_wrong_size.rs b/third_party/rust/zerocopy/tests/ui-stable/include_value_wrong_size.rs new file mode 100644 index 0000000000..d87b30698b --- /dev/null +++ b/third_party/rust/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"); |