summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/needs-feature.none.stderr
blob: 3b6f63a8efecd7cdbeaac62a34bb82f7b41d593d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: type parameters must be declared prior to const parameters
  --> $DIR/needs-feature.rs:10:26
   |
LL | struct A<const N: usize, T=u32>(T);
   |         -----------------^----- help: reorder the parameters: lifetimes, then types: `<T, const N: usize>`

error[E0658]: const generics are unstable
  --> $DIR/needs-feature.rs:10:16
   |
LL | struct A<const N: usize, T=u32>(T);
   |                ^
   |
   = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
   = help: add `#![feature(min_const_generics)]` to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.