summaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-02-17 08:24:10 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-02-17 19:05:00 +0100
commite09602bb8ba690c0caf317c7eb9fe4462a68bd84 (patch)
tree1f921f0dbac9f090523ec98717c42f5c18d5bf9b /tests/tests.rs
parent56b18d6af91c83c6fd9c3db28c0a623f66556a62 (diff)
var: Constant arrays of const elements should not generate `static mut`s.
Fixes #1727
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 4824f484..7095068a 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -353,10 +353,10 @@ fn test_clang_env_args() {
"/* automatically generated by rust-bindgen */
extern \"C\" {
- pub static mut x: [::std::os::raw::c_int; 1usize];
+ pub static x: [::std::os::raw::c_int; 1usize];
}
extern \"C\" {
- pub static mut y: [::std::os::raw::c_int; 1usize];
+ pub static y: [::std::os::raw::c_int; 1usize];
}
"
.to_string(),