-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add syntax for multiple lifetimes #25883
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
If you have multiple references, you can use the same lifetime multiple times: | ||
|
||
```rust | ||
fn x_or_y<’a>(x: &‘a str, y: &‘a str) -> &‘a str { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is using the fancy single quote instead of the normal one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh i am bad at git, fixing
r=me with just a minor nit |
@bors: r=alexcrichton rollup |
📌 Commit 5e94187 has been approved by |
Fixes #25417