Files
rust/src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.min.stderr

12 lines
420 B
Plaintext
Raw Normal View History

2020-08-18 22:44:06 +02:00
error: `&'static str` is forbidden as the type of a const generic parameter
2020-11-17 11:44:21 +01:00
--> $DIR/issue-66596-impl-trait-for-str-const-arg.rs:8:25
|
LL | trait Trait<const NAME: &'static str> {
| ^^^^^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
2021-01-04 22:35:44 -07:00
= help: more complex types are supported with `#![feature(const_generics)]`
error: aborting due to previous error