mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-06 23:27:36 +00:00
9 lines
172 B
Plaintext
9 lines
172 B
Plaintext
//@ run-rustfix
|
|
fn get_slice() -> &'static [i32] {
|
|
&[1, 2, 3, 4]
|
|
}
|
|
|
|
fn main() {
|
|
let _sqsum: i32 = get_slice().into_iter().map(|i| i * i).sum(); //~ ERROR [E0599]
|
|
}
|