]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-62878.full.stderr
Auto merge of #76110 - FedericoPonzi:convert-openoptions-cint, r=JoshTriplett
[rust.git] / src / test / ui / const-generics / issues / issue-62878.full.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[E0107]: wrong number of const arguments: expected 2, found 1
8   --> $DIR/issue-62878.rs:11:5
9    |
10 LL |     foo::<_, {[1]}>();
11    |     ^^^^^^^^^^^^^^^ expected 2 const arguments
12
13 error[E0107]: wrong number of type arguments: expected 0, found 1
14   --> $DIR/issue-62878.rs:11:11
15    |
16 LL |     foo::<_, {[1]}>();
17    |           ^ unexpected type argument
18
19 error[E0308]: mismatched types
20   --> $DIR/issue-62878.rs:11:15
21    |
22 LL |     foo::<_, {[1]}>();
23    |               ^^^ expected `usize`, found array `[{integer}; 1]`
24
25 error: aborting due to 4 previous errors
26
27 Some errors have detailed explanations: E0107, E0308, E0770.
28 For more information about an error, try `rustc --explain E0107`.