summaryrefslogtreecommitdiff
path: root/tests/headers/extern-const-struct.h
diff options
context:
space:
mode:
authorIan P. Cooke <icooke@3redpartners.com>2021-07-07 06:37:04 -0500
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-07-16 21:31:29 +0200
commita380678490b821201f10b861144b15bbe08694a2 (patch)
treeade618adab094bfa8e6e248cdc0eef05bb08a5a4 /tests/headers/extern-const-struct.h
parentf65f2307f69a85cc7857b88409fe89c2bd2f79b7 (diff)
Let Rust derive everything but Default for large arrays in 1.47 and later
Fixes #1977 as of rust-lang/rust#74060 is available since Rust 1.47 Fixes #2041. Closes #2070.
Diffstat (limited to 'tests/headers/extern-const-struct.h')
-rw-r--r--tests/headers/extern-const-struct.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/headers/extern-const-struct.h b/tests/headers/extern-const-struct.h
index 10006e82..10271274 100644
--- a/tests/headers/extern-const-struct.h
+++ b/tests/headers/extern-const-struct.h
@@ -1,3 +1,5 @@
+// bindgen-flags: --rust-target 1.40
+
struct nsFoo {
float details[400];
};