为什么要编译以下代码:
fn main() {
let xs = [||1, ||2, ||3];
}
但是this不是吗?
fn main() {
let xs = [(||1, 1), (||2, 2), (||3, 3)] ;
}
编辑:明确地说,问题不是why does it not compile.是what is the difference between these two that makes the first compile but the second does not?.