summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs
blob: b810efe73847e10c10ccda303e2a645136583642 (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass (FIXME(62277): could be check-pass?)

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

struct Generic<const V: usize>;

fn main() {
    let _ = Generic::<0>;
}