]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / params-in-ct-in-ty-param-lazy-norm.min.stderr
index 39aa8087cec50a5fff1ff06003597fda61947205..9e0837a0a620c656254809b597f0d020f4f260b7 100644 (file)
@@ -13,6 +13,7 @@ LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
    |                                            ^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions
+   = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
 
 error: constant values inside of type parameter defaults must not depend on generic parameters
   --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:12:21