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