parent
57c8a3e8b6
commit
dcf7e4da69
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ reference to an `i32` with the lifetime `'a`’.
|
||||||
|
|
||||||
# In `struct`s
|
# In `struct`s
|
||||||
|
|
||||||
You’ll also need explicit lifetimes when working with [`struct`][structs]s:
|
You’ll also need explicit lifetimes when working with [`struct`][structs]s that
|
||||||
|
contain references:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
struct Foo<'a> {
|
struct Foo<'a> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue