]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.stderr
suggest introducing an explicit lifetime if it does not exist
[rust.git] / src / test / ui / suggestions / lifetimes / missing-lifetimes-in-signature-2.stderr
index 0212c2d712cb35014746a94f5dfd360780b3fdd8..e5d2ead6ad67cd61d3d8614b923f9dfe8929409d 100644 (file)
@@ -22,8 +22,8 @@ LL | |     });
    | |______^
 help: consider adding an explicit lifetime bound...
    |
-LL | fn func<T: Test + 'a>(foo: &Foo, t: T) {
-   |                 ++++
+LL | fn func<'a, T: Test + 'a>(foo: &Foo, t: T) {
+   |         +++         ++++
 
 error: aborting due to previous error