blob: 535d3249eb910b936d39277680800fb57a13d5c9 [file] [log] [blame]
//@ run-rustfix
fn get_slice() -> &'static [i32] {
&[1, 2, 3, 4]
}
fn main() {
let _sqsum: i32 = get_slice().map(|i| i * i).sum(); //~ ERROR [E0599]
}