diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-08-23 01:59:26 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-09-09 19:39:43 -0700 |
| commit | fe5183e627731f076e1aee9133f71190b5b67c1a (patch) | |
| tree | 5781862e8198a9ae5c91d6742e13d427bea154e7 /example/std_example.rs | |
| parent | cf7c0554f139b2e5db330898310ffe2c415e8ddc (diff) | |
Fix the examples in cg_clif
Diffstat (limited to 'example/std_example.rs')
| -rw-r--r-- | example/std_example.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index e99763e2722..f27d4ef57e0 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -166,7 +166,7 @@ fn main() { enum Never {} } - foo(I64X2(0, 0)); + foo(I64X2([0, 0])); transmute_fat_pointer(); @@ -204,7 +204,7 @@ fn rust_call_abi() { } #[repr(simd)] -struct I64X2(i64, i64); +struct I64X2([i64; 2]); #[allow(improper_ctypes_definitions)] extern "C" fn foo(_a: I64X2) {} |
