about summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic-function-call-in-array-length.rs
diff options
context:
space:
mode:
authorEthan Brierley <ethanboxx@gmail.com>2020-10-11 16:47:45 +0100
committerEthan Brierley <ethanboxx@gmail.com>2020-10-11 19:20:42 +0100
commitd7029cbd7e25405ab815d12d55c3f496d48f6084 (patch)
treeb6ef22dbd3de4bf04d700f4287d56b6a4e0ef2e7 /src/test/ui/const-generics/generic-function-call-in-array-length.rs
parent1661f77e7b38546547207158bff2488411dd6697 (diff)
downloadrust-d7029cbd7e25405ab815d12d55c3f496d48f6084.tar.gz
rust-d7029cbd7e25405ab815d12d55c3f496d48f6084.zip
`min_const_generics` diagnostics improvements
2

3
Diffstat (limited to 'src/test/ui/const-generics/generic-function-call-in-array-length.rs')
-rw-r--r--src/test/ui/const-generics/generic-function-call-in-array-length.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/const-generics/generic-function-call-in-array-length.rs b/src/test/ui/const-generics/generic-function-call-in-array-length.rs
index c8bbae29343..653ad84e10f 100644
--- a/src/test/ui/const-generics/generic-function-call-in-array-length.rs
+++ b/src/test/ui/const-generics/generic-function-call-in-array-length.rs
@@ -7,10 +7,10 @@
 const fn foo(n: usize) -> usize { n * 2 }
 
 fn bar<const N: usize>() -> [u32; foo(N)] {
-    //[min]~^ ERROR generic parameters must not be used inside of non-trivial constant values
+    //[min]~^ ERROR generic parameters must not be used inside const evaluations
     //[full]~^^ ERROR constant expression depends on a generic parameter
     [0; foo(N)]
-    //[min]~^ ERROR generic parameters must not be used inside of non-trivial constant values
+    //[min]~^ ERROR generic parameters must not be used inside const evaluations
 }
 
 fn main() {}