diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-01-06 18:31:58 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-01-06 18:31:58 -0500 |
| commit | 6cca7758650ce6d3fa4ea0ecf89759278bd5e435 (patch) | |
| tree | bc0fd4c0e4d176b750b03834b90a65209e4149f0 | |
| parent | e78de13783e46759314684e5f17ef165ee9b2cea (diff) | |
| parent | 7205d6b5807daad417a9bd2fd2e907ac6f553e0d (diff) | |
| download | rust-6cca7758650ce6d3fa4ea0ecf89759278bd5e435.tar.gz rust-6cca7758650ce6d3fa4ea0ecf89759278bd5e435.zip | |
Rollup merge of #30749 - andgra2:patch-1, r=steveklabnik
| -rw-r--r-- | src/librustc_typeck/check/regionck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/regionck.rs b/src/librustc_typeck/check/regionck.rs index 759d561a961..801700ba673 100644 --- a/src/librustc_typeck/check/regionck.rs +++ b/src/librustc_typeck/check/regionck.rs @@ -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 //! } |
