]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-62878.min.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-62878.min.stderr
1 error[E0770]: the type of const parameters must not depend on other generic parameters
2 --> $DIR/issue-62878.rs:6:38
3 |
4 LL | fn foo<const N: usize, const A: [u8; N]>() {}
5 | ^ the type must not depend on the parameter `N`
6
7 error: `[u8; _]` is forbidden as the type of a const generic parameter
8 --> $DIR/issue-62878.rs:6:33
9 |
10 LL | fn foo<const N: usize, const A: [u8; N]>() {}
11 | ^^^^^^^
12 |
13 = note: the only supported types are integers, `bool` and `char`
14 = note: more complex types are supported with `#[feature(const_generics)]`
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0770`.