rust/tests/ui/generic-const-items/parameter-defaults.stderr

9 lines
260 B
Plaintext
Raw Normal View History

2023-07-09 20:10:03 -05:00
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
--> $DIR/parameter-defaults.rs:10:12
|
LL | const NONE<T = ()>: Option<T> = None::<T>;
| ^^^^^^
error: aborting due to previous error