about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authormbartlett21 <mjmouse9999@gmail.com>2022-05-17 04:11:18 +0000
committermbartlett21 <mjmouse9999@gmail.com>2022-05-17 04:13:20 +0000
commit56649bb844ebf3d1861b3ee1d2616ccd22aab851 (patch)
tree12c58653c7a60762fabfbf381666316b6cc27eb7 /src/test
parentc1cfdd1fb225d64e78b8d8cbab83564ac2dd5ec2 (diff)
downloadrust-56649bb844ebf3d1861b3ee1d2616ccd22aab851.tar.gz
rust-56649bb844ebf3d1861b3ee1d2616ccd22aab851.zip
Update function pointer call error message
It now uses the type of context. (issue 97082)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/consts/issue-56164.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/issue-56164.stderr b/src/test/ui/consts/issue-56164.stderr
index b997aff0e83..3b80b3486a8 100644
--- a/src/test/ui/consts/issue-56164.stderr
+++ b/src/test/ui/consts/issue-56164.stderr
@@ -7,7 +7,7 @@ LL | const fn foo() { (||{})() }
    = note: closures need an RFC before allowed to be called in constant functions
    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
 
-error: function pointers are not allowed in const fn
+error: function pointer calls are not allowed in constant functions
   --> $DIR/issue-56164.rs:7:5
    |
 LL |     input()