]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/ptr_arg.stderr
iterate List by value
[rust.git] / tests / ui / ptr_arg.stderr
index 34516368e5e4651e6e7556c63d2e15ee13b078c5..314f23497f9716647785e95e7fcae266156a57c6 100644 (file)
@@ -23,6 +23,7 @@ error: writing `&Vec<_>` instead of `&[_]` involves one more reference and canno
    |
 LL | fn cloned(x: &Vec<u8>) -> Vec<u8> {
    |              ^^^^^^^^
+   |
 help: change this to
    |
 LL | fn cloned(x: &[u8]) -> Vec<u8> {
@@ -41,6 +42,7 @@ error: writing `&String` instead of `&str` involves a new object where a slice w
    |
 LL | fn str_cloned(x: &String) -> String {
    |                  ^^^^^^^
+   |
 help: change this to
    |
 LL | fn str_cloned(x: &str) -> String {
@@ -63,6 +65,7 @@ error: writing `&String` instead of `&str` involves a new object where a slice w
    |
 LL | fn false_positive_capacity(x: &Vec<u8>, y: &String) {
    |                                            ^^^^^^^
+   |
 help: change this to
    |
 LL | fn false_positive_capacity(x: &Vec<u8>, y: &str) {