2020-07-22 15:58:54 -05:00
|
|
|
error: type parameters with a default must be trailing
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/wrong-order.rs:4:10
|
2020-07-22 15:58:54 -05:00
|
|
|
|
|
|
|
|
LL | struct A<T = u32, const N: usize> {
|
|
|
|
| ^
|
|
|
|
|
|
2020-07-23 01:06:42 -05:00
|
|
|
= note: using type defaults and const parameters in the same parameter list is currently not permitted
|
2020-07-22 15:58:54 -05:00
|
|
|
|
|
|
|
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
|
2020-08-06 15:57:09 -05:00
|
|
|
--> $DIR/wrong-order.rs:2:27
|
2020-07-22 15:58:54 -05:00
|
|
|
|
|
2020-08-06 15:57:09 -05:00
|
|
|
LL | #![cfg_attr(full, feature(const_generics))]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2020-07-22 15:58:54 -05:00
|
|
|
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
|
|
|
|
|
|
|
|
error: aborting due to previous error; 1 warning emitted
|
|
|
|
|