From f764b459f6a527cac4cb03d75514a5d16a3ee180 Mon Sep 17 00:00:00 2001 From: Jim Turner Date: Fri, 22 Jun 2018 23:45:43 -0400 Subject: [PATCH] Fix in-band lifetimes example with backreferences Backreferences are listed as a "possible extension or alternative" in RFC #2115, so the examples should not include them. This is further reinforced by commit c20ea6db254feac3536de7ae8a13bfdee2b07b42, which appears to have been intended to remove all instances of backreferences in the examples, but missed these. --- text/2115-argument-lifetimes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/2115-argument-lifetimes.md b/text/2115-argument-lifetimes.md index b932825fcbb..5023f38b0fe 100644 --- a/text/2115-argument-lifetimes.md +++ b/text/2115-argument-lifetimes.md @@ -334,8 +334,8 @@ tomorrow you would write: ```rust fn elided(&self) -> &str -fn two_args(arg1: &Foo, arg2: &Bar) -> &'arg2 Baz -fn two_lifetimes(arg1: &Foo, arg2: &Bar) -> &'arg1 Quux<'arg2> +fn two_args(arg1: &Foo, arg2: &'a Bar) -> &'a Baz +fn two_lifetimes(arg1: &'a Foo, arg2: &'b Bar) -> &'a Quux<'b> impl MyStruct<'A> { fn foo(&self) -> &'A str