Sign in
chromium
/
external
/
github.com
/
Kitware
/
CMake
/
master
/
.
/
Tests
/
RunCMake
/
Rust
/
edition_2021.rs
blob: ad113c73cb71b8a8bf53863c5eb32376852adfe8 [
file
]
// gen is becoming a keyword in 2024
pub
fn
gen
()
->
i32
{
// This does not compile before Rust 2021
[
1
,
2
,
3
].
into_iter
().
reduce
(|
acc
,
n
|
acc
+
n
).
unwrap_or
(
0
)
}