]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/param-in-ct-in-ty-param-default.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / generic / param-in-ct-in-ty-param-default.stderr
1 error: constant values inside of type parameter defaults must not depend on generic parameters
2   --> $DIR/param-in-ct-in-ty-param-default.rs:1:44
3    |
4 LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
5    |                                            ^ the anonymous constant must not depend on the parameter `T`
6
7 error: aborting due to previous error
8