]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | error: `()` is forbidden as the type of a const generic parameter |
2 | --> $DIR/feature-gate-const_generics.rs:1:17 | |
9fa01778 | 3 | | |
532ac7d7 | 4 | LL | fn foo<const X: ()>() {} |
5869c6ff | 5 | | ^^ |
9fa01778 | 6 | | |
5869c6ff XL |
7 | = note: the only supported types are integers, `bool` and `char` |
8 | = help: more complex types are supported with `#![feature(const_generics)]` | |
9fa01778 | 9 | |
5869c6ff | 10 | error: aborting due to previous error |
9fa01778 | 11 |