rust/tests/ui/feature-gates/feature-gate-adt_const_params.rs

3 lines
89 B
Rust
Raw Normal View History

struct Foo<const NAME: &'static str>; //~ ERROR `&'static str` is forbidden
fn main() {}