]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
Auto merge of #84842 - blkerby:null_lowercase, r=joshtriplett
[rust.git] / src / test / ui / const-generics / const-param-type-depends-on-type-param.min.stderr
index a83ee627187b52e5577ee95e0e21f0ede4d84747..32f7dea82639b70d41221a97d7c30205a7677ebe 100644 (file)
@@ -11,6 +11,7 @@ LL | pub struct Dependent<T, const X: T>([(); X]);
    |                      ^ unused parameter
    |
    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
+   = help: if you intended `T` to be a const parameter, use `const T: usize` instead
 
 error: aborting due to 2 previous errors