]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.rs
Replace "non trivial" with "non-trivial"
[rust.git] / src / test / ui / const-generics / issues / issue-76701-ty-param-in-const.rs
index 9252b592360d32888db7a4a40e01a267aa89e3d6..3c5bfb03f080176b6e4b95b98ca56de88e182026 100644 (file)
@@ -5,13 +5,13 @@
 
 fn ty_param<T>() -> [u8; std::mem::size_of::<T>()] {
     //[full]~^ ERROR constant expression depends on a generic parameter
-    //[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
     todo!()
 }
 
 fn const_param<const N: usize>() -> [u8; N + 1] {
     //[full]~^ ERROR constant expression depends on a generic parameter
-    //[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
     todo!()
 }