diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-02-17 08:24:10 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-02-17 19:05:00 +0100 |
commit | e09602bb8ba690c0caf317c7eb9fe4462a68bd84 (patch) | |
tree | 1f921f0dbac9f090523ec98717c42f5c18d5bf9b /tests/tests.rs | |
parent | 56b18d6af91c83c6fd9c3db28c0a623f66556a62 (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.rs | 4 |
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(), |