These are chat archives for rust-lang/rust

21st
Jan 2017
Igor
@target-san
Jan 21 2017 08:52
Is there some way in current language to initialize array with the closure result?
Because things like let a = [None as Option<String>; 32]; don't work due to Option<String> isn't Copy
Aleksey Kladov
@matklad
Jan 21 2017 12:24
@target-san no, the best you can do here is a macro: http://stackoverflow.com/a/36259524/1936422