about summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-const_generics.rs
blob: 06364eebef91c8b786f03e603ff9f08ae0633cf2 (plain)
1
2
3
4
5
fn foo<const X: ()>() {} //~ ERROR `()` is forbidden as the type of a const generic parameter

struct Foo<const X: usize>([(); X]);

fn main() {}