Do not mention lifetime names in force trimmed paths

This commit is contained in:
Esteban Küber
2023-01-06 01:11:50 +00:00
parent 81973a39e0
commit 252c43b42b
23 changed files with 44 additions and 40 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ LL | foo::<for<'a> fn(&'a ()) -> (dyn std::fmt::Display + 'a), _>(None, (&()
| required by a bound introduced by this call
|
= help: within `for<'a> fn(&'a ()) -> (dyn std::fmt::Display + 'a)`, the trait `for<'a> Sized` is not implemented for `(dyn std::fmt::Display + 'a)`
= note: required because it appears within the type `fn(&'a ()) -> (dyn Display + 'a)`
= note: required because it appears within the type `fn(&()) -> dyn Display`
note: required by a bound in `foo`
--> $DIR/unsized-ret.rs:5:11
|