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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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