Rollup merge of #30749 - andgra2:patch-1, r=steveklabnik
This commit is contained in:
commit
6cca775865
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@
|
|||
//!
|
||||
//! struct Foo { i: i32 }
|
||||
//! struct Bar { foo: Foo }
|
||||
//! fn get_i(x: &'a Bar) -> &'a i32 {
|
||||
//! fn get_i<'a>(x: &'a Bar) -> &'a i32 {
|
||||
//! let foo = &x.foo; // Lifetime L1
|
||||
//! &foo.i // Lifetime L2
|
||||
//! }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue