From 8c6c7cdc2b3188246747adbb9aa91ef39fd23fcf Mon Sep 17 00:00:00 2001 From: Felix Andreas Date: Mon, 5 Feb 2024 13:09:46 +0100 Subject: [PATCH] Update lifetime-elision.md --- src/lifetime-elision.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lifetime-elision.md b/src/lifetime-elision.md index e8a20e2e8..f509f3fee 100644 --- a/src/lifetime-elision.md +++ b/src/lifetime-elision.md @@ -182,10 +182,10 @@ usual rules, then it will error. By way of example: # struct Bar; # struct Baz; # fn somefunc(a: &Foo, b: &Bar, c: &Baz) -> usize {42} -// Resolved as `fn<'a>(&'a str) -> &'a str`. +// Resolved as `for<'a> fn(&'a str) -> &'a str`. const RESOLVED_SINGLE: fn(&str) -> &str = |x| x; -// Resolved as `Fn<'a, 'b, 'c>(&'a Foo, &'b Bar, &'c Baz) -> usize`. +// Resolved as `for<'a, 'b, 'c> Fn(&'a Foo, &'b Bar, &'c Baz) -> usize`. const RESOLVED_MULTIPLE: &dyn Fn(&Foo, &Bar, &Baz) -> usize = &somefunc; ```