]> git.proxmox.com Git - rustc.git/blobdiff - library/core/src/iter/traits/iterator.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / library / core / src / iter / traits / iterator.rs
index 69f06fb06ef5d19c478a691dc9b0b29fca84a69d..1cc9133fc3dc4997037677ba1888d652ada88922 100644 (file)
@@ -40,6 +40,10 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
         label = "`{Self}` is not an iterator; try calling `.into_iter()` or `.iter()`"
     ),
     on(_Self = "&[]", label = "`{Self}` is not an iterator; try calling `.iter()`"),
+    on(
+        _Self = "std::vec::Vec<T, A>",
+        label = "`{Self}` is not an iterator; try calling `.into_iter()` or `.iter()`"
+    ),
     on(
         _Self = "&str",
         label = "`{Self}` is not an iterator; try calling `.chars()` or `.bytes()`"