rust/tests/ui/const-generics/defaults/default-on-impl.stderr

9 lines
254 B
Plaintext
Raw Normal View History

2021-04-18 06:57:22 -05:00
error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
--> $DIR/default-on-impl.rs:3:6
2021-04-18 06:57:22 -05:00
|
LL | impl<const N: usize = 1> Foo<N> {}
| ^^^^^^^^^^^^^^^^^^
2021-04-18 06:57:22 -05:00
error: aborting due to previous error