]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs
Rollup merge of #74521 - andjo403:readme, r=nikic
[rust.git] / src / test / ui / const-generics / params-in-ct-in-ty-param-lazy-norm.rs
1 #![feature(const_generics)] //~ WARN the feature `const_generics` is incomplete
2
3 struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
4 //~^ ERROR constant values inside of type parameter defaults
5
6 // FIXME(const_generics:defaults): We still don't know how to we deal with type defaults.
7 struct Bar<T = [u8; N], const N: usize>(T);
8 //~^ ERROR constant values inside of type parameter defaults
9 //~| ERROR type parameters with a default
10
11 fn main() {}