fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: `&'static [i32]` is not an iterator 2 --> $DIR/issue-94581.rs:6:29 3 | 4LL | let sqsum = get_slice().map(|i| i * i).sum(); 5 | ^^^ `&'static [i32]` is not an iterator; try calling `.iter()` 6 | 7 = note: the following trait bounds were not satisfied: 8 `&'static [i32]: Iterator` 9 which is required by `&mut &'static [i32]: Iterator` 10 `[i32]: Iterator` 11 which is required by `&mut [i32]: Iterator` 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0599`.