1 error: generic parameters may not be used in const operations
2 --> $DIR/intrinsics-type_name-as-const-argument.rs:15:44
4 LL | T: Trait<{std::intrinsics::type_name::<T>()}>
5 | ^ cannot perform const operation using `T`
7 = note: type parameters may not be used in const expressions
8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
10 error: `&'static str` is forbidden as the type of a const generic parameter
11 --> $DIR/intrinsics-type_name-as-const-argument.rs:10:22
13 LL | trait Trait<const S: &'static str> {}
16 = note: the only supported types are integers, `bool` and `char`
17 = help: more complex types are supported with `#![feature(adt_const_params)]`
19 error: aborting due to 2 previous errors