]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0621-does-not-trigger-for-closures.stderr
index 58f0ede63080655a61c2b5cca9ccb7e3d19e8c83..feca7f10b706b22890178427631abd62ee72cbff 100644 (file)
@@ -1,28 +1,28 @@
 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
-  --> $DIR/E0621-does-not-trigger-for-closures.rs:25:5
+  --> $DIR/E0621-does-not-trigger-for-closures.rs:15:5
    |
-LL |     invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
+LL |     invoke(&x, |a, b| if a > b { a } else { b });
    |     ^^^^^^
    |
-note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 25:16...
-  --> $DIR/E0621-does-not-trigger-for-closures.rs:25:16
+note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 15:16...
+  --> $DIR/E0621-does-not-trigger-for-closures.rs:15:16
    |
-LL |     invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
+LL |     invoke(&x, |a, b| if a > b { a } else { b });
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 note: ...so that reference does not outlive borrowed content
-  --> $DIR/E0621-does-not-trigger-for-closures.rs:25:45
+  --> $DIR/E0621-does-not-trigger-for-closures.rs:15:45
    |
-LL |     invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
+LL |     invoke(&x, |a, b| if a > b { a } else { b });
    |                                             ^
-note: but, the lifetime must be valid for the call at 25:5...
-  --> $DIR/E0621-does-not-trigger-for-closures.rs:25:5
+note: but, the lifetime must be valid for the call at 15:5...
+  --> $DIR/E0621-does-not-trigger-for-closures.rs:15:5
    |
-LL |     invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
+LL |     invoke(&x, |a, b| if a > b { a } else { b });
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 note: ...so type `&i32` of expression is valid during the expression
-  --> $DIR/E0621-does-not-trigger-for-closures.rs:25:5
+  --> $DIR/E0621-does-not-trigger-for-closures.rs:15:5
    |
-LL |     invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
+LL |     invoke(&x, |a, b| if a > b { a } else { b });
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error