]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/const-argument-if-length.min.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / const-argument-if-length.min.stderr
index bce701ade8651f22c40c8956a30c0f88fb9a3e2a..8a1074392a5cbd09bf65f568cda92eb9a791a432 100644 (file)
@@ -5,6 +5,7 @@ LL |     pad: [u8; is_zst::<T>()],
    |                        ^ 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[E0277]: the size for values of type `T` cannot be known at compilation time
   --> $DIR/const-argument-if-length.rs:17:12