]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/issues/issue-71169.full.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-71169.full.stderr
CommitLineData
3dfed10e 1error[E0770]: the type of const parameters must not depend on other generic parameters
5869c6ff 2 --> $DIR/issue-71169.rs:5:43
3dfed10e
XL
3 |
4LL | fn foo<const LEN: usize, const DATA: [u8; LEN]>() {}
5 | ^^^ the type must not depend on the parameter `LEN`
6
7error: constant expression depends on a generic parameter
5869c6ff 8 --> $DIR/issue-71169.rs:10:14
3dfed10e
XL
9 |
10LL | foo::<4, DATA>();
11 | ^^^^
12 |
13 = note: this may fail depending on what value the parameter takes
14
15error: aborting due to 2 previous errors
16
17For more information about this error, try `rustc --explain E0770`.