mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
@ -324,7 +324,7 @@ For a more comprehensive understanding of elision, please see [lifetime elision]
|
|||||||
```rust,editable
|
```rust,editable
|
||||||
/* Remove all the lifetimes that can be elided */
|
/* Remove all the lifetimes that can be elided */
|
||||||
|
|
||||||
fn nput<'a>(x: &'a i32) {
|
fn input<'a>(x: &'a i32) {
|
||||||
println!("`annotated_input`: {}", x);
|
println!("`annotated_input`: {}", x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user