]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / suggestions / lifetimes / missing-lifetimes-in-signature-2.stderr
index 5d195e5ff32f76eabfe1a4834151edba0b2d8ade..0212c2d712cb35014746a94f5dfd360780b3fdd8 100644 (file)
@@ -1,24 +1,25 @@
 error[E0311]: the parameter type `T` may not live long enough
-  --> $DIR/missing-lifetimes-in-signature-2.rs:20:9
+  --> $DIR/missing-lifetimes-in-signature-2.rs:20:5
    |
-LL |     foo.bar(move |_| {
-   |         ^^^
+LL | /     foo.bar(move |_| {
+LL | |
+LL | |         t.test();
+LL | |     });
+   | |______^
    |
 note: the parameter type `T` must be valid for the anonymous lifetime defined here...
   --> $DIR/missing-lifetimes-in-signature-2.rs:19:24
    |
 LL | fn func<T: Test>(foo: &Foo, t: T) {
    |                        ^^^
-note: ...so that the type `[closure@$DIR/missing-lifetimes-in-signature-2.rs:20:13: 23:6]` will meet its required lifetime bounds...
-  --> $DIR/missing-lifetimes-in-signature-2.rs:20:9
+note: ...so that the type `T` will meet its required lifetime bounds
+  --> $DIR/missing-lifetimes-in-signature-2.rs:20:5
    |
-LL |     foo.bar(move |_| {
-   |         ^^^
-note: ...that is required by this bound
-  --> $DIR/missing-lifetimes-in-signature-2.rs:11:12
-   |
-LL |         F: 'a,
-   |            ^^
+LL | /     foo.bar(move |_| {
+LL | |
+LL | |         t.test();
+LL | |     });
+   | |______^
 help: consider adding an explicit lifetime bound...
    |
 LL | fn func<T: Test + 'a>(foo: &Foo, t: T) {