X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibcore%2Funit.rs;h=f41f4a5e94a76ee5b585b9575636cfa4b7e66aab;hb=cdbbc25cc31080e189a98c010a0b39a9074d0c50;hp=bf01ceb8b2d3e5bbb4dcd484e0c91a319236cc3a;hpb=327c54ed02e412013e8ffabc61c71f10c2777fe1;p=rust.git diff --git a/src/libcore/unit.rs b/src/libcore/unit.rs index bf01ceb8b2d..f41f4a5e94a 100644 --- a/src/libcore/unit.rs +++ b/src/libcore/unit.rs @@ -15,7 +15,7 @@ /// ``` #[stable(feature = "unit_from_iter", since = "1.23.0")] impl FromIterator<()> for () { - fn from_iter>(iter: I) -> Self { + fn from_iter>(iter: I) -> Self { iter.into_iter().for_each(|()| {}) } }