How do I declare a static mutable variable without assignment?
问题 I tried the following struct mbuf { cacheline: *mut [u64], // great amount of rows follows below // .......... } static mut arr: [mbuf; 32]; // Q1 my main aim // something as before but using Vec; // Q2 also main aim fn main() { // let static mut arr: [mbuf; 32]; // Q3 also doesn't work // static mut arr: [mbuf; 32]; // Q3 also doesn't work } and got error src/main.rs:74:29: 74:30 error: expected one of `+` or `=`, found `;` src/main.rs:74 static mut arr: [mbuf; 32]; ^ Q1,Q2,Q3 - Is it