Skip to content

Commit ae3feec

Browse files
nikomatsakisgaurikholkar
authored andcommitted
update reference for test
1 parent b0c264d commit ae3feec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/ui/lifetime-errors/ex1-return-one-existing-name-if-else-using-closure.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ note: ...so that reference does not outlive borrowed content
1414
|
1515
19 | invoke(&x, |a, b| if a > b { a } else { b });
1616
| ^
17-
note: but, the lifetime must be valid for the call at 19:5...
17+
note: but, the lifetime must be valid for the expression at 19:5...
1818
--> $DIR/ex1-return-one-existing-name-if-else-using-closure.rs:19:5
1919
|
2020
19 | invoke(&x, |a, b| if a > b { a } else { b });
21-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22-
note: ...so that argument is valid for the call
23-
--> $DIR/ex1-return-one-existing-name-if-else-using-closure.rs:19:12
21+
| ^^^^^^
22+
note: ...so that a type/lifetime parameter is in scope here
23+
--> $DIR/ex1-return-one-existing-name-if-else-using-closure.rs:19:5
2424
|
2525
19 | invoke(&x, |a, b| if a > b { a } else { b });
26-
| ^^
26+
| ^^^^^^
2727

2828
error: aborting due to previous error(s)
2929

0 commit comments

Comments
 (0)