4 static settings_dir: String = format!("");
5 //~^ ERROR cannot call non-const fn
6 //~| ERROR is not yet stable as a const
8 fn from_string(_: String) -> Value {
11 fn set_editor(_: Value) {}
14 let settings_data = from_string(settings_dir);
15 //~^ ERROR cannot move out of static item
19 ref x if x == &0 => set_editor(settings_data),
20 ref x if x == &1 => set_editor(settings_data),
21 _ => unimplemented!(),