Skip to content

Commit

Permalink
update reference for test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored and gaurikholkar committed Jun 16, 2017
1 parent b0c264d commit ae3feec
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ note: ...so that reference does not outlive borrowed content
|
19 | invoke(&x, |a, b| if a > b { a } else { b });
| ^
note: but, the lifetime must be valid for the call at 19:5...
note: but, the lifetime must be valid for the expression at 19:5...
--> $DIR/ex1-return-one-existing-name-if-else-using-closure.rs:19:5
|
19 | invoke(&x, |a, b| if a > b { a } else { b });
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...so that argument is valid for the call
--> $DIR/ex1-return-one-existing-name-if-else-using-closure.rs:19:12
| ^^^^^^
note: ...so that a type/lifetime parameter is in scope here
--> $DIR/ex1-return-one-existing-name-if-else-using-closure.rs:19:5
|
19 | invoke(&x, |a, b| if a > b { a } else { b });
| ^^
| ^^^^^^

error: aborting due to previous error(s)

0 comments on commit ae3feec

Please sign in to comment.