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