]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/iterators/string.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / iterators / string.stderr
index fecdbd1785f618df32164d5b4dc99d7062a5099d..1653006682427736a5e0a889248ebd0d8f06acfe 100644 (file)
@@ -5,6 +5,7 @@ LL |     for _ in "".to_owned() {}
    |              ^^^^^^^^^^^^^ `String` is not an iterator
    |
    = help: the trait `Iterator` is not implemented for `String`
+   = note: required because of the requirements on the impl of `IntoIterator` for `String`
    = note: required by `into_iter`
 
 error[E0277]: `&str` is not an iterator
@@ -14,6 +15,7 @@ LL |     for _ in "" {}
    |              ^^ `&str` is not an iterator; try calling `.chars()` or `.bytes()`
    |
    = help: the trait `Iterator` is not implemented for `&str`
+   = note: required because of the requirements on the impl of `IntoIterator` for `&str`
    = note: required by `into_iter`
 
 error: aborting due to 2 previous errors