]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-52533.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-52533.nll.stderr
index a13b06e320483789749413e0c5640ae792aa1517..37ab2a3b84d2f3fafc2f098c950449ba8490e143 100644 (file)
@@ -1,14 +1,8 @@
-warning: not reporting region error due to nll
-  --> $DIR/issue-52533.rs:15:16
-   |
-LL |     foo(|a, b| b)
-   |                ^
-
 error: unsatisfied lifetime constraints
   --> $DIR/issue-52533.rs:15:16
    |
 LL |     foo(|a, b| b)
-   |          -  -  ^ closure was supposed to return data with lifetime `'1` but it is returning data with lifetime `'2`
+   |          -  -  ^ closure was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
    |          |  |
    |          |  has type `&'1 u32`
    |          has type `&'2 u32`