rust/tests/ui/traits/new-solver/array-default.rs
2023-06-02 22:07:57 +00:00

9 lines
151 B
Rust

// compile-flags: -Ztrait-solver=next
// check-pass
fn has_default<const N: usize>() where [(); N]: Default {}
fn main() {
has_default::<1>();
}