]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/const-arg-type-arg-misordered.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / const-generics / const-arg-type-arg-misordered.stderr
CommitLineData
74b04a01
XL
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/const-arg-type-arg-misordered.rs:1:12
3 |
4LL | #![feature(const_generics)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8
9error[E0747]: constant provided when a type was expected
10 --> $DIR/const-arg-type-arg-misordered.rs:6:35
11 |
12LL | fn foo<const N: usize>() -> Array<N, ()> {
13 | ^
14 |
15 = note: type arguments must be provided before constant arguments
16
ba9703b0 17error: aborting due to previous error; 1 warning emitted
74b04a01
XL
18
19For more information about this error, try `rustc --explain E0747`.