My code:
static LANGUAGE: &str = "Rust";
pub fn main() {
....
let strings:Vec<&str>= Languages.split("|").collect();
LANGUAGE = &strings[1].to_string();
println!("Value is {}", &LANGUAGE);
}
After build code error LANGUAGE = &pcnamehost[1].to_string() cannot assign. I want assign value for static variable string, pls help me, thank you