]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/issue_4266.stderr
iterate List by value
[rust.git] / tests / ui / issue_4266.stderr
index 3c9740c4a222ffcc8b33158554c20e28f19909db..0426508e622f8fd471a61e0464e1ba53ccf537a3 100644 (file)
@@ -1,16 +1,16 @@
 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
-  --> $DIR/issue_4266.rs:5:1
+  --> $DIR/issue_4266.rs:4:1
    |
 LL | async fn sink1<'a>(_: &'a str) {} // lint
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
 
 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
   --> $DIR/issue_4266.rs:8:1
    |
-LL | async fn one_to_one<'a>(s: &'a str) -> &'a str { s } // lint
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | async fn one_to_one<'a>(s: &'a str) -> &'a str {
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 2 previous errors