Rollup merge of #30749 - andgra2:patch-1, r=steveklabnik

This commit is contained in:
Steve Klabnik 2016-01-06 18:31:58 -05:00
commit 6cca775865

View file

@ -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
//! }