]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/issues/issue-62220.rs
Replace "non trivial" with "non-trivial"
[rust.git] / src / test / ui / const-generics / issues / issue-62220.rs
index acb13ad1170f2290a387a2eedbc5f4bbdee85829..5694dc6d04da17cce4f033c02abfcd72b2bf609f 100644 (file)
@@ -6,7 +6,7 @@
 pub struct Vector<T, const N: usize>([T; N]);
 
 pub type TruncatedVector<T, const N: usize> = Vector<T, { N - 1 }>;
-//[min]~^ ERROR generic parameters must not be used inside of non trivial constant values
+//[min]~^ ERROR generic parameters must not be used inside of non-trivial constant values
 
 impl<T, const N: usize> Vector<T, { N }> {
     /// Drop the last component and return the vector with one fewer dimension.