]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/default-on-impl.stderr
Rollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk
[rust.git] / tests / ui / const-generics / defaults / default-on-impl.stderr
1 error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
2   --> $DIR/default-on-impl.rs:3:6
3    |
4 LL | impl<const N: usize = 1> Foo<N> {}
5    |      ^^^^^^^^^^^^^^^^^^
6
7 error: aborting due to previous error
8