Files
rust/tests/ui/const-generics/min_const_generics/default_function_param.stderr
2025-08-06 01:26:26 +02:00

9 lines
232 B
Plaintext

error: defaults for generic parameters are not allowed here
--> $DIR/default_function_param.rs:3:8
|
LL | fn foo<const SIZE: usize = 5usize>() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error