about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-01-03 12:22:11 +0100
committerRalf Jung <post@ralfj.de>2023-01-03 12:22:11 +0100
commitd96592b4fdd2278b21bb0437c153f87e8c6013c0 (patch)
tree64c1ea7d0f54a249bf27d91b6f9792fcaa12a169 /src/test/ui/function-pointer
parent99fc745656e24aa63b59d541fa7c7ccf2fb619eb (diff)
parent2bf39cfa25d9feb510604de662508acf2a98ec7c (diff)
downloadrust-d96592b4fdd2278b21bb0437c153f87e8c6013c0.tar.gz
rust-d96592b4fdd2278b21bb0437c153f87e8c6013c0.zip
Merge from rustc
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
    |