]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / const-arg-type-arg-misordered.stderr
1 error[E0747]: constant provided when a type was expected
2   --> $DIR/const-arg-type-arg-misordered.rs:3:35
3    |
4 LL | fn foo<const N: usize>() -> Array<N, ()> {
5    |                                   ^
6    |
7    = note: type arguments must be provided before constant arguments
8    = help: reorder the arguments: types, then consts: `<T, N>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0747`.