rust/tests/ui/feature-gates/feature-gate-adt_const_params.rs
2023-01-11 09:32:08 +00:00

3 lines
89 B
Rust

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