about summary refs log tree commit diff
path: root/tests/ui/consts/const-call.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-12-23 21:49:48 +0000
committerMichael Goulet <michael@errs.io>2024-12-23 22:15:32 +0000
commit92f93f6d1127cd8f2438474ebe4620231f5d5473 (patch)
treee2d9b672103b6cc9c6fb2fc6439beebe9e3d2ee2 /tests/ui/consts/const-call.rs
parentaddbd001ec56741829f20a3000892f8620dd0843 (diff)
downloadrust-92f93f6d1127cd8f2438474ebe4620231f5d5473.tar.gz
rust-92f93f6d1127cd8f2438474ebe4620231f5d5473.zip
Note def descr in NonConstFunctionCall
Diffstat (limited to 'tests/ui/consts/const-call.rs')
-rw-r--r--tests/ui/consts/const-call.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/const-call.rs b/tests/ui/consts/const-call.rs
index 28e89559fe5..851b66f7623 100644
--- a/tests/ui/consts/const-call.rs
+++ b/tests/ui/consts/const-call.rs
@@ -4,5 +4,5 @@ fn f(x: usize) -> usize {
 
 fn main() {
     let _ = [0; f(2)];
-    //~^ ERROR cannot call non-const fn
+    //~^ ERROR cannot call non-const function
 }