]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/in-band-lifetimes/no_introducing_in_band_in_locals.stderr
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / ui / in-band-lifetimes / no_introducing_in_band_in_locals.stderr
index a43b49041ec2aa4fc0cb391cf3ebc305b9d33a3e..5f0de61e69d29177e49267eebddf3a6094182b6b 100644 (file)
@@ -16,11 +16,11 @@ LL |     let y: fn(&'test u32) = foo2;
 help: consider introducing lifetime `'test` here
    |
 LL | fn bar<'test>() {
-   |       ^^^^^^^
+   |       +++++++
 help: consider making the type lifetime-generic with a new `'test` lifetime
    |
 LL |     let y: for<'test> fn(&'test u32) = foo2;
-   |            ^^^^^^^^^^
+   |            ++++++++++
 
 error: aborting due to 2 previous errors