rust/tests/ui/const-generics/min_const_generics/default_function_param.stderr

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

9 lines
278 B
Plaintext
Raw Normal View History

2021-03-01 05:50:09 -06:00
error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
--> $DIR/default_function_param.rs:3:8
2020-11-11 16:48:52 -06:00
|
2021-03-01 05:50:09 -06:00
LL | fn foo<const SIZE: usize = 5usize>() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-11-11 16:48:52 -06:00
error: aborting due to 1 previous error
2020-11-11 16:48:52 -06:00