rust/tests/ui/const-generics/mgca/array-expr-empty.rs
2026-01-10 12:45:26 +09:00

9 lines
195 B
Rust

#![expect(incomplete_features)]
#![feature(min_generic_const_args)]
fn takes_empty_array<const A: []>() {}
//~^ ERROR: expected type, found `]`
fn main() {
takes_empty_array::<{ [] }>();
}