about summary refs log tree commit diff
path: root/tests/rustdoc-ui
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-30 15:11:34 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-30 20:36:16 +0200
commit76df2656dfdb385830e83b14abf908544177be22 (patch)
tree98941f8313e2fe86dfbf01ced8d9d8963cd6ade7 /tests/rustdoc-ui
parentad3b7257615c28aaf8212a189ec032b8af75de51 (diff)
downloadrust-76df2656dfdb385830e83b14abf908544177be22.tar.gz
rust-76df2656dfdb385830e83b14abf908544177be22.zip
Replace `ItemCtxt::report_placeholder_type_error` `match` with a call to `TyCtxt::def_descr`
Diffstat (limited to 'tests/rustdoc-ui')
-rw-r--r--tests/rustdoc-ui/invalid_infered_static_and_const.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-ui/invalid_infered_static_and_const.stderr b/tests/rustdoc-ui/invalid_infered_static_and_const.stderr
index 401020224d6..3e116826c49 100644
--- a/tests/rustdoc-ui/invalid_infered_static_and_const.stderr
+++ b/tests/rustdoc-ui/invalid_infered_static_and_const.stderr
@@ -1,10 +1,10 @@
-error[E0121]: the placeholder `_` is not allowed within types on item signatures for constant items
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
   --> $DIR/invalid_infered_static_and_const.rs:1:24
    |
 LL | const FOO: dyn Fn() -> _ = "";
    |                        ^ not allowed in type signatures
 
-error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for statics
   --> $DIR/invalid_infered_static_and_const.rs:2:25
    |
 LL | static BOO: dyn Fn() -> _ = "";