summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/issues/issue-94581.rs
blob: df393e91db0842d65f12e78111a42dc926083772 (plain)
1
2
3
4
5
6
7
fn get_slice() -> &'static [i32] {
    &[1, 2, 3, 4]
}

fn main() {
    let sqsum = get_slice().map(|i| i * i).sum(); //~ ERROR [E0599]
}