]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/generic_const_exprs/let-bindings.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / const-generics / generic_const_exprs / let-bindings.stderr
1 error: overly complex generic constant
2 --> $DIR/let-bindings.rs:6:68
3 |
4 LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
5 | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
6 |
7 = help: consider moving this anonymous constant into a `const` function
8 = note: this operation may be supported in the future
9
10 error: overly complex generic constant
11 --> $DIR/let-bindings.rs:6:35
12 |
13 LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
14 | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
15 |
16 = help: consider moving this anonymous constant into a `const` function
17 = note: this operation may be supported in the future
18
19 error: aborting due to 2 previous errors
20