]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr
Rollup merge of #106897 - estebank:issue-99430, r=davidtwco
[rust.git] / tests / ui / const-generics / params-in-ct-in-ty-param-lazy-norm.full.stderr
1 error: generic parameters with a default must be trailing
2   --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:12
3    |
4 LL | struct Bar<T = [u8; N], const N: usize>(T);
5    |            ^
6
7 error[E0128]: generic parameters with a default cannot use forward declared identifiers
8   --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:21
9    |
10 LL | struct Bar<T = [u8; N], const N: usize>(T);
11    |                     ^ defaulted generic parameters cannot be forward declared
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0128`.