]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/defaults/wrong-order.full.stderr
Merge branch 'master' into feature/incorporate-tracing
[rust.git] / src / test / ui / const-generics / defaults / wrong-order.full.stderr
1 error: type parameters with a default must be trailing
2   --> $DIR/wrong-order.rs:5:10
3    |
4 LL | struct A<T = u32, const N: usize> {
5    |          ^
6    |
7    = note: using type defaults and const parameters in the same parameter list is currently not permitted
8
9 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
10   --> $DIR/wrong-order.rs:2:27
11    |
12 LL | #![cfg_attr(full, feature(const_generics))]
13    |                           ^^^^^^^^^^^^^^
14    |
15    = note: `#[warn(incomplete_features)]` on by default
16    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
17
18 error: aborting due to previous error; 1 warning emitted
19