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

12 lines
419 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
--> $DIR/issue-66596-impl-trait-for-str-const-arg.rs:9:25
|
LL | trait Trait<const NAME: &'static str> {
| ^^^^^^^^^^^^
|
= note: the only supported types are integers, `bool` and `char`
2020-11-24 11:05:55 +00:00
= help: more complex types are supported with `#[feature(const_generics)]`
error: aborting due to previous error