about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-12-27 18:56:00 -0800
committerEsteban Küber <esteban@kuber.com.ar>2022-12-27 18:56:00 -0800
commitb6453a454f7269318cf74620ced1fa06015df22b (patch)
tree27eea8aaedb580d96fb68c37fd0debac5fa75eee /src/test/ui/function-pointer
parent92c1937a90e5b6f20fa6e87016d6869da363972e (diff)
downloadrust-b6453a454f7269318cf74620ced1fa06015df22b.tar.gz
rust-b6453a454f7269318cf74620ced1fa06015df22b.zip
Trim more paths in obligation types
Diffstat (limited to 'src/test/ui/function-pointer')
-rw-r--r--src/test/ui/function-pointer/unsized-ret.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/function-pointer/unsized-ret.stderr b/src/test/ui/function-pointer/unsized-ret.stderr
index 40bf7a3898a..6f430687e6d 100644
--- a/src/test/ui/function-pointer/unsized-ret.stderr
+++ b/src/test/ui/function-pointer/unsized-ret.stderr
@@ -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 `for<'a> fn(&'a ()) -> (dyn std::fmt::Display + 'a)`
+   = note: required because it appears within the type `for<'a> fn(&'a ()) -> (dyn Display + 'a)`
 note: required by a bound in `foo`
   --> $DIR/unsized-ret.rs:5:11
    |