about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-29 18:24:31 +0100
committerGitHub <noreply@github.com>2022-12-29 18:24:31 +0100
commit6b792e91789bf94c3c21746c4d69832f3862808f (patch)
tree3bae8c3ca7c0424e54611d2e569a5e96e8ff250f /src/test/ui/function-pointer
parentbe56dc037fac13baba66a13021243a02ec75f8a5 (diff)
parentb6453a454f7269318cf74620ced1fa06015df22b (diff)
downloadrust-6b792e91789bf94c3c21746c4d69832f3862808f.tar.gz
rust-6b792e91789bf94c3c21746c4d69832f3862808f.zip
Rollup merge of #106202 - estebank:trim-paths, r=Nilstrieb
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
    |