]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/min_const_generics/generic-function-call-in-array-length.rs
Replace "non trivial" with "non-trivial"
[rust.git] / src / test / ui / const-generics / min_const_generics / generic-function-call-in-array-length.rs
index c52f402294203a8d6c502fa42c525de464db65fe..f5387d659b3faf292a47ddcda48d7f5fab5ee8f0 100644 (file)
@@ -3,9 +3,9 @@
 const fn foo(n: usize) -> usize { n * 2 }
 
 fn bar<const N: usize>() -> [u32; foo(N)] {
-    //~^ ERROR generic parameters must not be used inside of non trivial constant values
+    //~^ ERROR generic parameters must not be used inside of non-trivial constant values
     [0; foo(N)]
-    //~^ ERROR generic parameters must not be used inside of non trivial constant values
+    //~^ ERROR generic parameters must not be used inside of non-trivial constant values
 }
 
 fn main() {}